Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Can somebody give me an explanation on the differences between the 4 different built in RSS Feeds and why / when I should choose one over the other? Why does WordPress incorporate 4 different ones instead of focusing on 1 universal one? The feeds include:

1) RDF/RSS 1.0 feed

2) RSS 0.92 feed

3) RSS 2.0 feed

4) Atom feed

WordPress RSS Feeds Codex

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Feeds are not stored, WordPress generate them on request. That means that even if WordPress can generate 4 type of feed, that does not affect in any way performance, but gives the possibility to users to choose a format they like according to reader they are using: is not WordPress fault if there are different types of feed standard.

The WordPress preferred way is RSS 2.0, but if an user has different needs, WordPress allow to choose rdf, rss 0.92 or atom.

Of course you, as a site owner, can decide to support only one version, it's as simple as:

add_action( 'pre_get_posts', function () {
  if ( is_feed() && ! is_feed( 'rss2' ) ) { // only support rss2
    header("HTTP/1.0 403 Forbidden");
    exit();
  }
});
share|improve this answer
    
So there's not real difference between the 4, just preference? In the wiki article that @RayMitchell posted it looks like there are minor differences between atom / rss but not major differences. –  Howdy_McGee Apr 8 at 19:12
1  
Essentially in past there was some readers that supported atom and others that support rss. One choose the feed according to the reader (or the parser). @Howdy_McGee –  G. M. Apr 8 at 19:14
    
That's not exactly true. WordPress does store feeds. IIRC it's 12 or 24 hours. Had a hard time getting around that fact once. –  kaiser Apr 9 at 2:33
1  
@kaiser it (really SimplePie) cache feed, that's different. If no one ever ask for a feed WordPress never save anything. –  G. M. Apr 9 at 2:50

The various versions of RSS contain increasingly complex information, with the RSS 2.* being the most up to date. Atom feeds are another competing method of syndicating content. In general, RSS Feeds are more commonly used, and are almost always used to distribute podcasts.

The Wikipedia article gives pretty good info. http://en.wikipedia.org/wiki/Rss

share|improve this answer

Why does WordPress incorporate 4 different ones instead of focusing on 1 universal one?

Because there is no such thing as a "universal" one. Different systems require different formats. Having support for multiple formats increases interoperability and is not a bad thing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.