Provide a rss feed per category to your wordpress readers

November 23, 2008 · Print This Article

Do you blog about a lot of different topics?

If yes, you may want to provide a rss feed per category, so your readers will be able to only read what interests them. Believe it or not, this is very easy to achieve.

This recipe is probably one of the easiest to achieve I have ever published, but it is very useful. Let’s say you’d like to be able to only suscribe to Live experience wordpress tips.

The category url is:

http://www.livexp.net/windows/wordpress
To get a rss feed, you simply have to add /feed at the end of the url:
http://www.livexp.net/windows/wordpress/feed
To create a category rss feed, simply paste the following code:
<a href="<?php echo get_the_category().'/feed'; ?>"><?php echo get_the_category().' rss feed'; ?></a>


Your choice for site templates and wordpress themes

Comments

Got something to say?

You must be logged in to post a comment.