Showing footnotes in REST API
-
Howdy!
The footnotes don’t appear when fetching post content via the REST API. That’s an issue with my plugin Print My Blog which uses the WP REST API to fetch a printer-friendly version of the post (otherwise, the two plugins are a nice pair.)A user of my plugin reached via email (that’s their site being linked to). You can see the normal web-view of their page here: https://blog.ncmaps.org/index.php/ould-virginia/
I can fix the problem by changing
easy-footnotes.php
on line 160 fromif ( ( is_singular() || $efn_show_on_front ) && is_main_query() ) {
to
if ( (( is_singular() || $efn_show_on_front) && is_main_query()) || defined('REST_REQUEST') ) {
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Showing footnotes in REST API’ is closed to new replies.