Title: Problems with using the_content filter hook
Last modified: April 10, 2020

---

# Problems with using the_content filter hook

 *  [tnoguchi](https://wordpress.org/support/users/tnoguchi/)
 * (@tnoguchi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/problems-with-using-the_content-filter-hook/)
 * Wonderful plugin!
 * I’m noticing one outstanding issue with the plugin’s use of the standard `the_content`
   filter hook. Since other plugins and themes use this hook to inject their own
   content, I’m noticing that when I add a reusable block in a widget area, that
   it’s also injecting other plugin content into the block as well.
 * I’m guessing that the easiest solution would be to create a custom `reblex_the_content`
   filter and hooking `reblex_display_block()`, `reblex_shortcode()`, and `reblex_get_block()`
   into it–basically anywhere `the_content` filter hook is being used in reusable-
   blocks-extended.php, to avoid such conflicts.
 * See: [https://www.billerickson.net/code/duplicate-the_content-filters/](https://www.billerickson.net/code/duplicate-the_content-filters/)
    -  This topic was modified 6 years, 1 month ago by [tnoguchi](https://wordpress.org/support/users/tnoguchi/).
    -  This topic was modified 6 years, 1 month ago by [tnoguchi](https://wordpress.org/support/users/tnoguchi/).
      Reason: Edit for additional clarification

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

 *  [aetchells](https://wordpress.org/support/users/aetchells/)
 * (@aetchells)
 * [6 years ago](https://wordpress.org/support/topic/problems-with-using-the_content-filter-hook/#post-12798837)
 * I feel I am running into a similar issue to this. I have used your plugin to 
   add a reusable block to a widget area on my website’s homepage.
 * I am also using a social plugin, TF Social Share and I am seeing the share buttons
   on the widget.
 * Is there a solution to this?
 *  [Luciano](https://wordpress.org/support/users/lucianobosco/)
 * (@lucianobosco)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/problems-with-using-the_content-filter-hook/#post-12946178)
 * Hi there! Did you figure out how to use the PHP `reblex_display_block()` within`
   the_content`? I’m simply doing this, but just get an error 500
 *     ```
       function prepend_content( $content ) {
           return reblex_display_block(3810).$content;
       }
       add_filter('the_content', 'prepend_content');
       ```
   
 * I’ve also tried
 *     ```
       function prepend_content( $content ) {
           return '[reblex id="3810"]'.$content;
       }
       add_filter('the_content', 'prepend_content');
       ```
   
 * But no luck…
    -  This reply was modified 5 years, 11 months ago by [Luciano](https://wordpress.org/support/users/lucianobosco/).
 *  [bebablub](https://wordpress.org/support/users/bebablub/)
 * (@bebablub)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-using-the_content-filter-hook/#post-13342734)
 * [@lucianobosco](https://wordpress.org/support/users/lucianobosco/)
    Just replace“
   the_content” with “reblex_the_content” in “reusable-blocks-extended.php” and 
   you will be fine 😉
 * [@plugin](https://wordpress.org/support/users/plugin/) Author: Could you please
   update the sources to this changes?
 * I had also issues with double instancing of the_content in hook. In CM Routes
   Manager for example it leads to a endless loop and a 503 error.
 * Thank you!

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

The topic ‘Problems with using the_content filter hook’ is closed to new replies.

 * ![](https://ps.w.org/reusable-blocks-extended/assets/icon-256x256.png?rev=2157787)
 * [Reusable Blocks Extended](https://wordpress.org/plugins/reusable-blocks-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reusable-blocks-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reusable-blocks-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/reusable-blocks-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reusable-blocks-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reusable-blocks-extended/reviews/)

## Tags

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

 * 3 replies
 * 4 participants
 * Last reply from: [bebablub](https://wordpress.org/support/users/bebablub/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-using-the_content-filter-hook/#post-13342734)
 * Status: not resolved