dsifford / academic-bloggers-toolkit

WordPress plugin providing an all-in-one solution for effective academic blogging.
https://wordpress.org/plugins/academic-bloggers-toolkit/
GNU General Public License v3.0
120 stars 38 forks source link

Update the function 'collect_bibliography' in frontend.php #606

Closed MMaximuss closed 7 months ago

MMaximuss commented 4 years ago

Adding '&& get_queried_object_id() == $post->ID' in the 'IF' (function: collect_bibliography) will only run the function on the main query and not on possible widgets (eg. Recent Post Widget). NB. Sorry if I made a bit of a mess of the pull request. If the pull request does not work properly, you can remove it and contact me. Then I'll do it again.