WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Issue with filters

[Resolved] Issue with filters

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Trendwerk

    @trendwerk

    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).

    Plugin Author Trendwerk

    @trendwerk

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Issue with filters’ is closed to new replies.