Title: Plugin triggers from inside the_excerpt
Last modified: August 31, 2016

---

# Plugin triggers from inside the_excerpt

 *  Resolved [Relevad](https://wordpress.org/support/users/relevad/)
 * (@relevad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/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
 * [https://wordpress.org/plugins/add-widget-after-content/](https://wordpress.org/plugins/add-widget-after-content/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Arelthia Phillips](https://wordpress.org/support/users/apintop/)
 * (@apintop)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/plugin-triggers-from-inside-the_excerpt/#post-7164230)
 * Hi,
    Thanks for the detailed issue report. I will address this in the next update.
 * Arelthia
 *  Thread Starter [Relevad](https://wordpress.org/support/users/relevad/)
 * (@relevad)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-triggers-from-inside-the_excerpt/#post-7164369)
 * Hi, I was looking to update to the latest version of the plugin but I wanted 
   to check whether the wp_trim_excerpt() issue highlighted above has been resolved.
   
   Thanks — Relevad Corporation

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin triggers from inside the_excerpt’ is closed to new replies.

 * ![](https://ps.w.org/add-widget-after-content/assets/icon-256x256.png?rev=1890673)
 * [Add Widget After Content](https://wordpress.org/plugins/add-widget-after-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-widget-after-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-widget-after-content/)
 * [Active Topics](https://wordpress.org/support/plugin/add-widget-after-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-widget-after-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-widget-after-content/reviews/)

## Tags

 * [apply_filter](https://wordpress.org/support/topic-tag/apply_filter/)
 * [excerpt](https://wordpress.org/support/topic-tag/excerpt/)
 * [the_content](https://wordpress.org/support/topic-tag/the_content/)

 * 2 replies
 * 2 participants
 * Last reply from: [Relevad](https://wordpress.org/support/users/relevad/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-triggers-from-inside-the_excerpt/#post-7164369)
 * Status: resolved