I guess most of you have seen sites or blogs where you get a list of different feeds to subscribe to when you click on the little feed icon in the browser address bar. The question is how do they do that and also is it useful for you?
Lets start with if you have any use for a function like that, and the answer is simply YES! Of course you do.
Most people to your blog will subscribe to your entire blog feed (where all your posts will end up), but a limited few may only be interested in just one of your blog categories. These people are not interested in subscribing to everything so they may not subscribe if they have to subscribe to your entire blog. Therefore it’s a good idea to offer these people some alternatives to your entire blog feed.
Sometimes you may also have a forum, some articles posted to your site and of course your blog. Why not cross-promote all of these things using the feed icon? By offering for example your forum visitors the option to subscribe to your blog or vise versa you could get even more subscribers with very little effort.
To add this nice feature to your blog, you just need to add some HTML code between the <HEAD></HEAD> tags of your template. If you have WordPress you open header.php found in our template folder with any text editor (Notepad for example). Search for some code starting with . You may have several lines, but the line you’re looking for is something like this one:
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://feed.xaviermedia.com/XavierMedia" />
Notice the type=”” part, because that specifies what type of this is. In this case it’s an Atom feed, but it could also have said “application/rss+xml”.
Now just add as many of these lines as you like. Make sure you change the href=”” part of the code to the link of you feed and name the feed to something clever in the title=”” part. As an example on how you can do it this is how Sitepoint.com have setup their feeds:
<link rel="alternate" type="application/rss+xml" title="RSS - Articles" href="/recent.rdf" /> <link rel="alternate" type="application/rss+xml" title="RSS - News" href="/blogs/category/news/feed/" /> <link rel="alternate" type="application/rss+xml" title="RSS - Blogs" href="/blogs.rdf" /> <link rel="alternate" type="application/rss+xml" title="RSS - Forums" href="/forums/featured.rdf" /> <link rel="alternate" type="application/rss+xml" title="RSS - Books" href="/books.rdf" />
Remember to name the feeds to something your visitors would understand.