For future reference, this article covers each of the many ways to access your WordPress-generated feeds. Several different URL formats are available for the various types of WordPress feeds — posts, comments, and categories — for both permalink and default URL structures. For each example, replace “http://domain.tld/” with the URL of your blog. Note: even though your blog’s main feed is accessible through many different URLs, there are clear benefits to using a single, consistent feed URL throughout your site.
WordPress Post-Feed Formats for Permalinks
If you have permalinks enabled on your site, your main-content (posts) feed is accessible via the following URLs, depending on which feed format you would like to use:
http://domain.tld/feed/(RSS 2.0 format)http://domain.tld/feed/rss2/(RSS 2.0 format)http://domain.tld/feed/rss/(RSS 0.92 format)http://domain.tld/feed/rdf/(RDF/RSS 1.0 format)http://domain.tld/feed/atom/(Atom format)
WordPress Post-Feed Formats for Default URLs (non-permalink)
By default, your main-content (posts) feed is accessible via the following URLs, depending on desired format:
http://domain.tld/wp-rss2.php(RSS 2.0 format)http://domain.tld/wp-rss.php(RSS 0.92 format)http://domain.tld/wp-rdf.php(RDF/RSS 1.0 format)http://domain.tld/wp-atom.php(Atom format)
WordPress Post-Feed Formats via Query String (non-permalink)
Alternately, your main-content (posts) feed is also available at the following URLs, depending on desired format:
http://domain.tld/?feed=rss2(RSS 2.0 format)http://domain.tld/?feed=rss(RSS 0.92 format)http://domain.tld/?feed=rdf(RDF/RSS 1.0 format)http://domain.tld/?feed=atom(Atom format)
Display your Default Post-Feed URLs
To determine/display the default posts feed URL for your blog’s main content, place any or all of these template tags into a useful location in one of your theme files:
<?php bloginfo('rss2_url'); ?>(RSS 2.0 format)<?php bloginfo('rss_url'); ?>(RSS 0.92 format)<?php bloginfo('rdf_url'); ?>(RDF/RSS 1.0 format)<?php bloginfo('atom_url'); ?>(Atom format)
WordPress Main Comments Feed
Your blog’s main comments feed is available only in RSS 2.0 format, but there are several URL options from which to choose:
http://domain.tld/comments/feed/(Permalink format)http://domain.tld/wp-commentsrss2.php(Default format)http://domain.tld/?feed=commentsrss2(Query-string format)
Display your Main-Comments Feed URL
To display the default URL for your main comments feed, add this template tag to your theme file and load the page in your browser:
<?php bloginfo('comments_rss2_url'); ?>
Post-Specific Comment Feeds
By default, every post also delivers its own feed featuring all of its comments. To display feed URLs for individual, post-specific comment feeds, place this template tag anywhere in the main post loop or comment loop 1:
<?php comments_rss_link('Subscribe to comments on this post via RSS-2.0 feed'); ?>
Alternately, to display the comment feed URL for any specific post, simply append either of the following to the original post URL:
feed/(Permalink format)?feed=rss2(Default format)
Here is an example of each method for a generalized post URL:
http://domain.tld/individual-post/feed/(Permalink format)http://domain.tld/individual-post/?feed=rss2(Default format)
Update: When using default (non-permalink) URLs, the post-specific comment feeds are available via the following format:
http://domain.tld/?feed=rss2&p=123
..where "p=" references the post ID (thanks to Spamboy for sharing this information).
Category Feeds
To display individual category feed URLs, use either of the following formats 2:
http://domain.tld/category/categoryname/feed/(Permalink format)http://domain.tld/wp-rss2.php?cat=33(Default format)
References
55 Responses
Maggie – March 7, 2009
Hi
I am trying to get the code to embed the wordpress feed into another website.
The various widgets do not seem to be able to read my rss feed
http://wordpress.integrateful.net/wp-rss2.phporhttp://integrateful.net/wordpress/?feed=rss2yet if I put them in the browser they work fine.
what am I missing? – is there some way to work out how to embed them myself instead of using widgets?
thanks for this website
Jeff Starr – March 8, 2009
@Hansen: That’s some great stuff — thanks for sharing it with everyone. Sorry no help for the feed query offset..
@Maggie: If you are trying to add the feeds to your sidebar, you will need to access and edit the
sidebar.phpfile on your server..sylvain – March 17, 2009
Do you think it is possible to retreive the feed content from a tag url ?
For my part, i got a tag saison-6 and i want to retreive the last post with this tag
http://www.series-tv-news.fr/tag/saison-6
Thank you for your help
Goddess of Clarity – April 7, 2009
Thanks for the great resource! It proved extremely helpful today.
Wanted to add another Feed URL, this one for tags:
http://mysite.tld/?feed=rss2&tag=nanotechnologyJeff Starr – April 7, 2009
@Goddess of Clarity: Absolutely my pleasure! Thanks for the feedback and for sharing the feed format for tags. Much appreciated! :)
Tom O'Reilly – May 19, 2009
Any idea what I should do to resolve this issue? I’d appreciate any direction you can give me. Thanks.
Not Found
The requested URL /feed/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8 Server at daytradingthecurrencymarket.com Port 80
Jeff Starr – May 26, 2009
@Tom O’Reilly: Do you have permalinks enabled?
Kristie – July 31, 2009
Just wanted to say THANKS.
Jeff Starr – August 1, 2009
Kristie, you’re welcome! :)
John – August 10, 2009
Wonderful stuff I am sure but I am here for the answers. I don’t have the time!
Nat – September 9, 2009
Thank you for putting this article together. Being able to filter and sort what is in a feed is very powerful feature.
I wish that similar to using the “
category_name” query string argument, you could use a variant of the “tag” argument. I have tried and it doesn’t work. (so far)Jeff Starr – September 12, 2009
Hi Nat, just about anything is possible with WordPress.. what exactly were you trying to achieve?