WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. danieliser
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/multiple-content-blocks/

  2. Trendwerk
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Plugin Author

    Posted 10 months 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

About this Topic

Tags

No tags yet.