WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: RSS Footer] Footer appearing twice - using latest verion (4 posts)

  1. wptraveler
    Member
    Posted 4 years ago #

    Hi Joost,

    Footer is appearing twice

    http://bit.ly/9Hk6Ci

    Would you mind helping me fix?

    Using latest versions of WP and plugin.

    Thank you!

  2. LAffaire
    Member
    Posted 4 years ago #

    If you had spent about a second and a half looking over previous posts here, you'd have found this has been complained about many times before:
    http://wordpress.org/support/topic/295083

    And, yes, the author apparently does mind helping you - or anybody who reported the same bug. So don't wait for a fix. I'd consider this plugin abandoned.

  3. Ammaletu
    Member
    Posted 3 years ago #

    The problem is the following: The plugin adds the RSS footer with two filters: the_content and the_excerpt_rss. This is fine for the full content in the feed, but not for the excerpt. The excerpt is generated getting the content (the_content filter runs, so the RSS footer is appended), stripping all HTML (including HTML in the footer), shortening it and running the excerpt filter (RSS footer is appended a second time). This is of course only a problem if you haven't entered an excerpt manually.

    The fix is to change line 160 of the plugin from

    add_filter('the_content', 'embed_rssfooter');

    to

    add_filter('the_content_feed', 'embed_rssfooter');

    I believe this is due to a bug in older WP versions where the_content was called instead of the_content_feed. It should work now for WP 2.8+ or so.

  4. delapuravida
    Member
    Posted 3 years ago #

    Worked like a charm - thanks Ammaletu!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags