How to display when fetching post via REST API
-
Howdy! I have a plugin called Print My Blog that fetches posts using the REST API and dumps them all onto a single page for printing/exporting to PDF etc.
When posts contain an OSM map, the map doesn’t appear in this special print page.On the page I linked to, click “Print” and you’ll be taken to a mini version of this page (it just prints the content’s of that one page.)
Is it not working because I need to trigger enqueuing OSM’s Javascript? Or is OSM’s Javascript enqueued OK, it just needs to trigger rendering the maps (after the content is fetched via the REST API)?
Feel free to tell me my question doesn’t make sense.
The page I need help with: [log in to see the link]
- The topic ‘How to display when fetching post via REST API’ is closed to new replies.