Multiple content blocks
[resolved] Issue with filters (3 posts)

  1. danieliser
    Posted 3 years ago #

    There is a slight issue with the filters being applied via the_content. Using plugins that do content replacement via these filters such as EM and then using a MCB in the sidebar results in the sidebar containing the same content that Events Manager added for the main body.

    Im not sure if you really need to run them through apply_filters('the_content') as much as do_shortcode($content) which will convert shortcodes without applying filters.


  2. Trendwerk
    Plugin Author

    Posted 3 years ago #

    There could be a plugin or theme code that actually modify the real content (where the filter is meant for). I wouldn't want to break that code, because some plugins use the content filter to add stuff (which is the wrong way in my opinion).

    I'd like to hear your opinion about it, because I'm quite sceptical when it comes to changes a front-end output thing like this in an update (I wouldn't want to break somebody's code).

  3. Trendwerk
    Plugin Author

    Posted 2 years ago #

    By the way, there's an option now to disable filters. https://github.com/trendwerk/multiple-content-blocks/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multiple content blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.