Support » Plugins and Hacks » AddThis inserting scripts in the_excerpt/the_content in custom feeds

  • I am using the AddThis plugin (v 2.0.6) but am running into a problem where my custom feeds are displaying the AddThis head script the first time that either the_excerpt or the_content is called.

    For example here is one custom feed in particular:
    http://blogs.wfmt.com/andrewpatner/?feed=andrewpatner

    In that RSS, you can see in the first item block right after the guid (around line 33), the AddThis scripts are being called. In my PHP custom feed, if I comment out get_the_excerpt AND the_content_feed(‘rss2’) the AddThis script goes away. Any idea on either working around this or (if devs are checking here) is it something that needs patching in the plugin?

    Also, likely related, I’m also using the JSON API plugin (v 1.0.7) which is pulling in the same AddThis code before the callback in the returned JSON.

    You can see in this JSON code for example:
    http://blogs.wfmt.com/offmic/?json=get_category_posts&callback=?&category_slug=2010-chopin-competition&count=3

    This second issue makes the JSON API plugin unusable as it is no longer valid JSON and I am unable to parse it.

    If you need more info let me know. Thanks in advance for any help you can provide.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AddThis inserting scripts in the_excerpt/the_content in custom feeds’ is closed to new replies.