WordPress.org

Ready to get started?Download WordPress

Forums

Announcer
[Plugin:Announcer] makes RSS feeds invalid (1 post)

  1. ntm
    Member
    Posted 2 years ago #

    The Announcer plugin (v2.0) adds the announcement HTML code in the <channel> of RSS feeds (and probably also ATOM feeds). But <div> elements and other HTML elements are (by default) not allowed at this place in news feeds. That is why the plugin makes the feeds invalid and unreadable for some feed reader software.

    But this problem can be fixed. Edit the line 164 of the announcer.php as follows.
    old:

    ## Main output
    if ($announcer_status == "1" && announcer_compare_dates()){

    new:

    ## Main output
    if ($announcer_status == "1" && announcer_compare_dates() && FALSE === is_feed()){

    FALSE === is_feed() makes sure that the announcement is added to all WP output but the feeds. ("If it is not a feed (and the other conditions are met) the display the announcement")

    http://wordpress.org/extend/plugins/announcer/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags