Title: [Plugin:Announcer] makes RSS feeds invalid
Last modified: August 20, 2016

---

# [Plugin:Announcer] makes RSS feeds invalid

 *  [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/pluginannouncer-makes-rss-feeds-invalid/)
 * 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/](http://wordpress.org/extend/plugins/announcer/)

The topic ‘[Plugin:Announcer] makes RSS feeds invalid’ is closed to new replies.

 * ![](https://ps.w.org/announcer/assets/icon.svg?rev=2325339)
 * [Announcer - Sticky Message Banner & Notification Bar](https://wordpress.org/plugins/announcer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/announcer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/announcer/)
 * [Active Topics](https://wordpress.org/support/plugin/announcer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/announcer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/announcer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ntm](https://wordpress.org/support/users/ntm/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/pluginannouncer-makes-rss-feeds-invalid/)
 * Status: not resolved