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

  1. lesteph
    Posted 4 years 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.


  2. sanchothefat
    Plugin Author

    Posted 4 years ago #


    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
    Posted 4 years 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

  • Spots
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.