WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Spots] Conflicts with other plugins hooking into the_content()

[Plugin: Spots] Conflicts with other plugins hooking into the_content()

  • I love Spots, but occasionally have issues where another plugin I’m using (which adds social sharing buttons added to the bottom of the_content) adds buttons to Spot content as well as the main content loop on the page.

    I can’t see an obvious way to prevent this from happening – for example checking for is_main_query() in the other plugin doesn’t seem to avoid this.

    Any suggestions?

    Oddly I’m not sure this is a consistent issue – some spots seem to exhibit this behaviour only after being edited after their initial setup.

    http://wordpress.org/extend/plugins/spots/

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

    @sanchothefat

    Thanks,

    It’s a tricky one this. There’s a lot of advantages to using a loop context for the spot output.

    Ideally the other plugin would allow you to configure the post types it works on.

    We can certainly remove filters for the most popular sharing plugins…

    Which one do you use?

    Thing is, it’s my own custom sharing buttons plugin (I know, I know…), which just hooks the buttons onto the_content(). So I should be able to add a conditional check along the lines of:

    if ( 'spot' != get_post_type() ) {
      ...
    }

    Will try it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Spots] Conflicts with other plugins hooking into the_content()’ is closed to new replies.