Have you ever noticed that many next generation web browsers will often detect a blog’s feed by displaying a feed icon on the right side of the address bar?  This is something many estabalished sites have taken the time to set up to encourage feed subscribers, but something that most WordPress themes don’t do by default.  

In order to instruct next generation web browsers to automatically detect your WordPress blog’s feed(s), you’ll simply need to do is make a quick modification to your header.php file and add the following code:

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

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

If your theme already has the first code in place for the RSS Feed, then you’ll just need to paste the second set of code in to display your RSS Comments Feed.  You can also swap out the PHP code and instead use your Feedburner feed address if you’d like.

If you aren’t sure if you should bother to do this or not, never underestimate the power of suggestion.  It is an unobtrusive way to promote your RSS Feed and Comments Feed while not using up any valuable screen real estate.

Want automatic updates? Subscribe to our RSS feed or
Get Email Updates sent directly to your inbox!
Digg This | Stumble it | Add to Del.icio.us | | Print This

There Are 4 Responses So Far. »

  1. 1 minanube
    Saturday, December 20th, 2008 at 2:17 am

    awsome, i have read that Auto-Discovery Feeds is good for SEO, is that true ?

  2. 2 WordPress Hacker
    Thursday, February 12th, 2009 at 3:13 am

    Very nice very good tutorial

  3. 3 Anti Sansur
    Thursday, July 9th, 2009 at 12:11 pm

    Thank you very much.



Leave A Comment