Feed Autodiscovery Guide

November 9th, 2007 by Stephen Cronin (10,494 views)

Most modern browsers can automatically detect feeds offered by websites with feed autodiscovery enabled. This makes it easier to subscribe to these sites. If your blog doesn’t have feed autodiscovery enabled already, you need to set it up. Why make it harder for people to subscribe to your site?

Checking Whether It Is Enabled On Your Site

Checking whether you already have feed autodiscovery enabled is easy. Simply go to your site using a modern browser and check whether you can see the orange RSS icon in the Web Browser toolbar (not on the page itself).

Below is a screenshot of my site using Firefox. Note the orange feed icon. Internet Explorer 7 has the same icon, but in a different place.

Feed Autodiscovery Screenshot 1

If this icon is present on the toolbar when browsing your site, then you already have feed autodiscovery enabled.

It’s possible to have more than one feed enabled for autodiscovery. If your site has only one feed enabled, clicking the icon will take you to the feed. If there is more than one feed enabled, clicking the icon will show a menu, listing all feeds that have been found (see the following screenshot).

Feed Autodiscovery Screenshot 2

If your main site feed is already enabled, you may choose to enable other feeds, such as the Comments feed or even some of your category feeds. Just add the links you want, as outlined below.

Note: If you’re wondering why I’ve got both a Full Post Feed and a Summary Feed, that’s because I’m using the DualFeeds plugin. If you use DualFeeds, it can enable autodiscovery for you (see Feed Autodiscovery And The DualFeeds Plugin below).

How to Add Feed Autodiscovery Links

To enable a feed for autodiscovery, you need to add a link to it in the head section of your page’s HTML (between <head> and </head>). Ideally you should add this to all pages on your site.

An example of the link you need to add is as follows:

<link rel="alternate" type="application/rss+xml" title="Your Site Name RSS Feed" href="http://www.yoursite.com/feed" />

Obviously you need to replace "Your Site Name" with the name of your site and you need to replace http://www.yoursite.com/feed with your feed url.

If you wish to enable more than one feed, simply add a link for each one.

How you add these links to your pages will depend on which blogging platform you use. I outline how to do this in WordPress below.

What About FeedBurner?

If you use FeedBurner, you have the choice of using your site’s normal feed URLs or the related FeedBurner URLs.

If you use a FeedBurner redirection plugin, such as FeedBurner’s FeedSmith plugin or Flagrant Disregard’s Feedburner Plugin, I recommend using your site’s normal feed URLs, not the FeedBurner ones. The redirection plugin will redirect your normal URLs to the FeedBurner ones for you and if you ever stop using FeedBurner, there’ll be no need to change the autodiscovery links.

If you don’t use such a plugin, you need to use the FeedBurner URLs. If you ever stop using FeedBurner, you’ll have to change the autodiscovery links.

Setting Up The Links In WordPress

For WordPress users, the feed autodiscovery links should be added to the header.php file in your theme directory, as follows:

  1. Download header.php from the wp-content/themes/yourtheme folder, using an FTP program
  2. Make a copy of the file, in case you make a mistake
  3. Use a text editor to make the changes below
  4. When finished, save the file, then FTP it back up to the server, overwriting the original
It’s possible to do this via the Theme Editor in the Presentation menu of the WordPress Admin area, if you have the correct permissions. Personally, I do not recommend this, because you don’t have a copy of the file to restore if something goes wrong.

Changes to header.php (for step 3):

If autodiscovery is already enabled, find the following line (it may differ slightly depending on your theme) and add links to any extra feeds below it:

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

If you don’t have autodiscovery enabled, look for the </head> tag and add links to any extra feeds on the line immediately BEFORE this.

To add the links, use the format outlined above, eg:

<link rel="alternate" type="application/rss+xml" title="Your Site Name RSS Feed" href="http://www.yoursite.com/feed" />

Remember to change the details to reflect the title and URL for your site.

WARNING: If you change your permalink structure in future, you will need to update the autodiscovery links you add here, or the URLs will be wrong. If you just want your main site and/or comment feeds, use the following instead of the direct URL (this will always be correct regardless of any changes to your permalink structure). Note: You can’t do this if you want to use the FeedBurner URL (see What About FeedBurner? above).
Main Site Feed:

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

Comment Feed:

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Comments Feed" href="<?php bloginfo('comments_rss2_url'); ?>" />

Feed Autodiscovery And The DualFeeds Plugin

For users of my DualFeeds plugin (v1.1 & above) for WordPress, the good news is that you don’t need to set this up manually. DualFeeds can create the feed autodiscovery links for you. You simply turn on the appropriate parameters in the DualFeeds Options page in the WordPress Admin area.

Note: It’s likely that the main site feed (and maybe the comment feed) are already set up. You need to check if this is the case (as per Checking Whether It Is Enabled On Your Site above). Make sure you only turn on the DualFeeds parameters for those that doesn’t already exist, or you will get duplicates.

The Final Word

You want as many subscribers as possible, so make it easy for people to subscribe. Make sure that feed autodiscovery is turned on for your main site feed. Consider adding other feeds that readers may find useful. Make your feeds more accessible!

Subscribe To Site:
Share and Enjoy:
  • Twitter
  • Sphinn
  • DZone
  • Design Float
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Tumblr
  • Posterous
  • Digg
  • Facebook
  • Reddit
Related posts

Tags: , , ,

21 Comments

  1. very useful tip, I am implementing it in my blogs.

  2. Excellent post, Stephen! I have to add my comments feed to be auto discovery enabled. I am sure that’ll give it a little boost in subscribers and may be increased interaction with my readers.

    Stumbled! :-)

  3. Thiru, Thanks.

    K, Every little bit helps, that’s my thinking. Thanks for the Stumble!

  4. WOW. That sounds very cool features. I have never thought about the autodiscovery in RSS FEED.

    Great job!

  5. Hi Terence, to be honest I hadn’t thought about it either until I was writing the DualFeeds plugin. But it makes good sense to add it.

  6. [...] subscribe from the address bar in Firefox or the toolbar in Internet Explorer which is designed to automatically discover your feed. In the absence of any instructions from you, browsers will invariably discover the [...]

  7. [...] icon for a reader. Make sure you have your blog with the right feeds set for auto-discovery with this excellent guide. You could also get your Comments feed to be [...]

  8. [...] Feed Autodiscovery Most modern browsers can automatically detect feeds offered by websites with feed autodiscovery [...]

  9. [...] Feed Autodiscovery Most modern browsers can automatically detect feeds offered by websites with feed autodiscovery [...]

  10. Thanks for the great article. My theme I was using already had it included, but its very good to know. I never realized how firefox and readers autodiscovered feeds until I actually looked at my header.php and saw it finally. I am leaving my comments feed off of autodiscovery, but the posts feed will remain and be discovered.

  11. Thank you for these valuable information, you discuss how to make feed, I am looking for an article or information about places that can view my feed, and how can I get the best exposure from my feed.

  12. [...] The second thing you need to do is fix your auto-discovery options. If you use Firefox , Flock, Opera, IE7 or Safari , you may notice certain notifications when you’re visiting web pages that have RSS feeds. When that icon appears, that means that there’s subscribable content on that page. Clicking on the RSS icon takes you to a page that gives you a variety of ways to subscribe. However, we want to make sure that it’s providing ways to subscribe to the NEW Feedburner feed. If you use an official redirection service like a Wordpress Plugin (same goes for Edublogs) or Blogger’s Feedburner redirection service, then no worries, it should handle it for you. In Typepad, you can connect your Typepad blog to Feedburner and then it’ll handle it for you. If you use anything else, you may need to edit your template yourself to do this part. While it may seem intimidating to do so, it’s not that complicated. Just a matter of tweaking a few lines of code. This blog post will show you how. [...]

  13. Great post. I am amazed how many people never check and see if they are using rss feed or auto discovery is being used. The idea of having mutiple ones listed is another great point.

  14. Great tips i did not know you could use dual feeds and have automatic discovery for more than one. I like the idea of giving people a choice of full post or summary.

  15. Wordpress is helping with this automatically, but since I modified the default theme to my end, I lost track of this, but soon I figured out how to do it! This is very important as in many programs like entrecard, they look for your feed through that and if it is not working then you lose the traffic you might have gotten through the feed!

  16. I guess the same could be said about placing the subribe to my feed button on your blog. Some sites place it at the bottom of the page and sometimes it is only a simple text link. That is making it far harder to subscribe. If oyu have a prominent noticable button at the top of your page then it is just as good.

  17. A well placed rss button is a lot more effective than this although I guess every little bit helps. thanks for the tip.

  18. I never even look at that anymore. I look at the rss feed they use if i like the site. I guess it would help get more people to subscribe to your feed but not sure how many more.

  19. Interesting post. Although I knew about this feature of web browsers I had never take it into account. I have to implement this auto discovery code in my web site. Thanks for a useful article!

    LINK REMOVED: because of failure to use KeywordLuv syntax (name@keywords)

  20. Wow, very interesting post. I know most of these tips, but I Still bookmarked it :)

  21. Very good instruction. I will try to implement it.

Leave a comment

THIS BLOG IS NO LONGER DOFOLLOW

Rules: Leave your name! No inappropriate or offensive comments. No links to inappropriate or offensive sites. Comments must contribute to the discussion.


Get your ad shown hereGet your ad shown hereWPVote - Digg for WordPress Lovers Advertise

WordPress Plugins by Stephen Cronin

Want a Custom WordPress plugin? See my Services page.

Greasemonkey Scripts by Stephen Cronin

Visit my home page at Userscripts.org.