Spring Sale! Save 30% on all books w/ code: PLANET24
Web Dev + WordPress + Security

What is My WordPress Feed URL?

[ WordPress RSS Feed ] For future reference, this article covers each of the many ways to access your WordPress-generated feeds1. 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://example.com/” 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. Now let’s find out what is your WordPress feed URL..

WordPress Feed URLs when Permalinks Enabled

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:

Format URL
RSS 2.0 format http://example.com/feed/
RSS 2.0 format http://example.com/feed/rss2/
RSS 0.92 format http://example.com/feed/rss/
RDF/RSS 1.0 format http://example.com/feed/rdf/
Atom format http://example.com/feed/atom/

WordPress Feed URLs when Permalinks NOT Enabled

When WordPress permalinks are NOT enabled, your main-content (posts) feed is accessible via the following URLs, depending on the desired feed format:

Format URL
RSS 2.0 format http://example.com/wp-rss2.php
RSS 0.92 format http://example.com/wp-rss.php
RDF/RSS 1.0 format http://example.com/wp-rdf.php
Atom format http://example.com/wp-atom.php

Alternately, your main-content (posts) feed is also available at the following query-string URLs, depending on desired format:

Format URL
RSS 2.0 format http://example.com/?feed=rss2
RSS 0.92 format http://example.com/?feed=rss
RDF/RSS 1.0 format http://example.com/?feed=rdf
Atom format http://example.com/?feed=atom

Display your WordPress 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:

Format Template Tag
RSS 2.0 format <?php bloginfo('rss2_url'); ?>
RSS 0.92 format <?php bloginfo('rss_url'); ?>
RDF/RSS 1.0 format <?php bloginfo('rdf_url'); ?>
Atom format <?php bloginfo('atom_url'); ?>

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:

Format URL
Permalink format http://example.com/comments/feed/
Default format http://example.com/wp-commentsrss2.php
Query-string format http://example.com/?feed=commentsrss2

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'); ?>

Comment Feeds for Single Posts

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 loop2:

<?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 feed or ?feed=rss2 to the original post URL. For example:

Format URL
Permalink format http://example.com/single-blog-post/feed/
Default format http://example.com/single-blog-post/?feed=rss2
Query-string format* http://example.com/?p=123&feed=rss2

* Note: In the “Query-string format” example, p=123 refers to the post ID. Thanks to Spamboy for sharing this example.

Category Feeds

URLs for individual category feeds:

Format URL
Permalink format http://example.com/category/categoryname/feed/
Non-permalink format http://example.com/wp-rss2.php?cat=33

Tag Feeds

URLs for individual tag feeds:

Format URL
Permalink format http://example.com/tag/tagname/feed/
Non-permalink format (Not available)

Other Feeds

Of course, additional types of WordPress feeds also may be available. For example, with permalinks enabled, you can append feed to just about any WordPress URL to get the feed. Let’s say that you are viewing the year-based archives, something like:

http://example.com/2020/

To get the RSS feed for this archive, just do this:

http://example.com/2020/feed/

Likewise for most any archive view, like monthly, daily, search, plus things like custom post types and custom taxonomies, all should provide feeds at the feed endpoint1. Again this works when permalinks are enabled on the site. Your mileage may vary when permalinks are NOT enabled.

Footnotes

About the Author
Jeff Starr = Web Developer. Book Author. Secretly Important.
Blackhole Pro: Trap bad bots in a virtual black hole.

55 responses to “What is My WordPress Feed URL?”

  1. 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.php or
    http://integrateful.net/wordpress/?feed=rss2

    yet 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

  2. Jeff Starr 2009/03/08 2:50 pm

    @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.php file on your server..

  3. 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

  4. Goddess of Clarity 2009/04/07 6:23 am

    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=nanotechnology

  5. Jeff Starr 2009/04/07 9:38 am

    @Goddess of Clarity: Absolutely my pleasure! Thanks for the feedback and for sharing the feed format for tags. Much appreciated! :)

  6. Tom O'Reilly 2009/05/19 4:59 pm

    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

  7. Jeff Starr 2009/05/26 9:40 am

    @Tom O’Reilly: Do you have permalinks enabled?

  8. Just wanted to say THANKS.

  9. Jeff Starr 2009/08/01 5:56 pm

    Kristie, you’re welcome! :)

  10. Wonderful stuff I am sure but I am here for the answers. I don’t have the time!

  11. 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)

  12. Jeff Starr 2009/09/12 3:24 pm

    Hi Nat, just about anything is possible with WordPress.. what exactly were you trying to achieve?

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
USP Pro: Unlimited front-end forms for user-submitted posts and more.
Thoughts
I live right next door to the absolute loudest car in town. And the owner loves to drive it.
8G Firewall now out of beta testing, ready for use on production sites.
It's all about that ad revenue baby.
Note to self: encrypting 500 GB of data on my iMac takes around 8 hours.
Getting back into things after a bit of a break. Currently 7° F outside. Chillz.
2024 is going to make 2020 look like a vacation. Prepare accordingly.
First snow of the year :)
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.