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
Perishable – March 11, 2008
Right on, Jason — such use is exactly what I had in mind while creating the article. In fact, one of the determining factors in choosing topics to write about is whether or not I will use the information myself, which is definitely the case here. Thanks for the feedback! :)
Jack A – March 15, 2008
Hopefully, someone will have patience with me and help. I am trying to build a [WordPress] widget and looking for the url for my recent posts. If I add /feed/ to the end of my blog url, I get a news feed. Looking to make a widget with just titles.
Thanks…
Perishable – March 15, 2008
Hi Jack, I am a bit confused as to your goal here.. feel free to send an email and I will do my best to help!
shane – March 23, 2008
Great post topic, and it comes at just the right time for me. I am having the hardest time to get feedburner to display full content feed as opposed to partial feed. I suspect it may have something to do with with the way my feed is set up on my blog, BUT I am not that technically literate. TO be fooling about with that >>>> <link rel=”alternate” type=”application/rss+xml” title=” RSS Feed” href=”" />
or does this look alright, either way I am unsure if this is the problem, currently I am using permalink redirect (plug-in) to redirect my feed to feedburner, and yes I have the full text box check off, and no I dont use the more tag. Though i think wordpress may be passing this along still, as my feed is stuck at partial
Perishable – March 25, 2008
Sorry to hear that, shane. I was having the same problem myself for quite some time. Eventually, I found that a hearty blend of
moretags,Full textoption, and the incredible Full Text Feed plugin finally did the trick. I don’t know what will work for you, but you can always upgrade to WordPress 2.5 to avoid the entire hassle. By default, version 2.5 serves full feeds even when themoretag is used.Spamboy – April 18, 2008
There’s one additional format you’re missing…
If you’re using the default Permalink setting for WordPress, your post-specific feed would look like this:
http://domain.tld/?feed=rss2&p=123Where "
p=" is the Post ID.Perishable – April 20, 2008
Thank you for sharing this information, Spamboy. Technically, the default WordPress URL structure utilizes query string values (i.e., permalinks are disabled by default), but the format you provide is valid nonetheless. Incidentally, the
?feed=rss2&p=123string works for default WordPress URLs and permalinks as well. In any case, I appreciate the info, and have updated the article with the additional format for post-specific comment feeds. Thanks again! :)NZ Beats – October 9, 2008
I’m trying to get an rss feed from a sub category, but not having any luck. Is there a chance you could help. I am using permalinks and the parent category name is review while the sub category name is album review the slug is album-review.
I have tried the following with no luck:
http://www.nzbeats.com/category/album-review/feed/http://www.nzbeats.com/category/review/feed/Is there something I am doing wrong here?
Thanks NZ Beats
NZ Beats – October 9, 2008
Got it working using the following:
http://www.nzbeats.com/?feed=rss2&category_name=album-reviewJeff Starr – October 12, 2008
@NZ Beats: Thanks for sharing the solution with us! Glad to hear you got it working ;) Cheers!
Erin – October 21, 2008
What about feeds for individual posts (i.e. not their comments). I noticed this feed was being used by one of my readers:
http://domain.tld/?p=123&feed=rss2&withoutcomments=1Also, doesn’t WordPress also generate tag feeds?
Jeff Starr – October 21, 2008
@Erin: individual post feeds are rare, but they certainly are available. The addition of the
&withoutcomments=1parameter looks like it removes the comments from appearing in the feed, although I have never actually seen that format used before (until now!). I suppose one reason that individual post feeds would prove useful would be for articles that are expected to be updated with new information, such as might be seen for plugin and theme posts. Of course, most posts are not updated, so providing post feeds seems a bit pointless..And yes, tag feeds are available in newer versions of WordPress; specifically, any WP version that supports tag functionality (from 2.5 onward, I think..). The format for tag feeds is similar to that of category and archive feeds.