Possible bug
-
Hi
I found that in the class-plugin.php it is sometimes getting the wrong ID for the page / post so therefore not displaying the FAQ’s when using the shortcode. In my instance i call multiple shortcodes [pods] being one of them for the pods plugin.within the function shortcode_view I have added wp_reset_postdata(); at the top of the function and this now makes sure that the plugin gets the correct post / page ID when get_the_ID() is called within your plugin to retrieve the FAQ’s for the page.
It might be worth adding this line in “for good measure” so that the correct ID is retrieved in all instances.
- The topic ‘Possible bug’ is closed to new replies.