• I got problem that in single posts addthis buttons won’t show up. This seems to be common problem since many results by Googling around.

    In my case this problem relates to WP SEO plugin by Yoast which triggers the addthis javascript inclusion during wp_head() processing. Of course wp seo methods do not print the script to the DOM and now we’ve got supposed inclusion but not the actual code.

    Fix to the issue is like so:
    In AddThis_addjs::__construct() includes the the_content filter.
    add_filter('the_content', array($this, 'output_script_filter') );

    Don’t include the filter yet in the constructor but in another method that is hooked to the wp_head action with late priority so the filter is attached after wp_head stuff is processed. This should fix many conflicts if there is other than with the WP SEO plugin.

    https://wordpress.org/plugins/addthis/

Viewing 1 replies (of 1 total)
  • Plugin Contributor addthis_paul

    (@addthis_paul)

    Thanks for letting us know about this! Is a good way to duplicate the bug to just install the Yoast WP SEO plugin?

Viewing 1 replies (of 1 total)
  • The topic ‘Single post not showing addthis buttons bug. conflict with WP SEO plugin’ is closed to new replies.