Does not play nice with the_content() outside loop
-
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”.
The topic ‘Does not play nice with the_content() outside loop’ is closed to new replies.