Plugin triggers from inside the_excerpt
-
Hi,
Thanks so much for the plugin.
We found an issue where our widget placed inside the “after content” sidebar was being executed multiple times on a single content page.
After several hours I found that the culprit is that “after content plugin” binds to “the_content” event in WordPress.
This event is triggered by both the_content() and wp_trim_excerpt() (and possibly other functions as well).
And on our page wp_trim_excerpt() was used for as part of a related posts plugin.I’ve added a hack into “after content plugin” to only attempt to place the sidebar ONCE. But if you would like to come up with a better way to exclude filter calls for the_content from random other places, that would probably be preferable.
Thanks
— Relevad Corporation
- The topic ‘Plugin triggers from inside the_excerpt’ is closed to new replies.