Category/Tag Feeds for Blogger/Blogspot blogs

One thing I’ve been waiting 6 years for is for blogger to allow rss/atom feeds for particular categories (tags) for their blogs. So for example you could subscribe to just the drupal-related posts or java-related posts or so forth.

Well apparently it is possible in blogger now and it has been for 2 years. It just isn’t documented or supported with an interface. You have to go to your blog settings, edit the layout, then click ‘edit HTML’ then check the ‘Expand Widget Templates’ checkbox.

Now search for “data:labels” to find the relevant code (this assumes you have the categories widget enabled on your blog layout). It is in 2 sections, one if you have your categories displayed as a list and one if displayed as a cloud.

Now somewhere after this loop part in each section:

<b:loop values='data:labels' var='label'>

Add this line for Atom category feeds: (double-click to select whole line)

<link expr:href='data:blog.homepageUrl + "feeds/posts/default/-/" +'
expr:title=' + " Atom Feed"' rel='alternate' type='application/atom+xml'/>

and/or this line for RSS category feeds:

<link expr:href='data:blog.homepageUrl + "feeds/posts/default/-/" + + "?alt=rss"' 
expr:title=' + " RSS Feed"' rel='alternate' type='application/rss+xml'/>

Now if you click the RSS icon in Firefox, it shows the main feed followed by feeds for any category.

You can also add an <a href… tag after each item to display a link to the RSS or atom feed in the categories widget box.
(adapted from the instructions here and here)

Here are some category feeds for my blog:

Posted in technology
One comment on “Category/Tag Feeds for Blogger/Blogspot blogs
  1. thanks, I’ve been looking for this info for a long time.

Comments are closed.


Enter your email address to follow this blog and receive notifications of new posts by email.

Join 4,350 other followers

%d bloggers like this: