Use Category RSS

Here’s a simple quick hack that lets you have RSS feeds from each of your sites categories. While this does need to be done to all themes used, thats not a big deal and it does bring a very nice bit of functionality to the website.

Locate the theme folder you are using and edit the ’sidebar.php’ file within the folder.

Add this code to the list:

<?php if (get_query_var('cat')) { ?>
<li>
<a xhref="/wp-rss2.php?cat=<?php echo get_query_var('cat'); ?>"><?php echo single_cat_title(); ?> (RSS)</a>
</li>
<?php } ?>

Now save the file - done.

To access the feeds, use a url pattern such as:

http://theworldsfullof.us/?feed=rss2&cat=10


That’s all there is to it, you can use the url to RSS2 syndicate categories. This is especially handy when you have multiple topics of site content!

Leave a Reply

Authors & Contributors Login:
User:
Password:

| Lost password?

Advertisement