WordPress.org

Ready to get started?Download WordPress

Forums

Spots
Conflicts with other plugins hooking into the_content() (3 posts)

  1. lesteph
    Member
    Posted 1 year ago #

    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/

  2. sanchothefat
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. lesteph
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.