WordPress.org

Ready to get started?Download WordPress

Forums

Social Sharing Toolkit
Does not play nice with the_content() outside loop (1 post)

  1. benklocek
    Member
    Posted 1 year ago #

    Using this plugin with another that uses the_content(), causes the sharing buttons to be added to that item as well. It happens with widgets that use the_content filter.

    The fix is changing line 721 in social_sharing_toolkit.com to
    if (is_feed() }} !in_the_loop()) {
    which makes it only run if it's within The Loop.

    More here: http://pippinsplugins.com/playing-nice-with-the-content-filter/, although I found "is_main_query" did not work, I had to use "in_the_loop".

    http://wordpress.org/extend/plugins/social-sharing-toolkit/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.