Separate Wordpress Category Feeds

May 31st, 2006, Published in Wordpress, Web Development, 592 Views, Email This Email This

‘Wordpress’ is renowned for allowing a generous selection of various feeds, whether it be ‘RSS’ or ‘ATOM’ or others, but it only comes with one basic feed option has default. Wouldn’t it be nice to be able to have a separate feed for separate categories?

At the start of this brief article I stated that ‘Wordpress’, “only comes with one basic feed option as default”, this is only half of the reality.

Wordpress is actually equipped to separate various categories into associated feeds, but such a function is disabled with the default install.

In order to access the feeds for categories, place the following one line of code anywhere on your site, the ’sidebar’ would be most fantastic:

<?php wp_list_cats(’sort_column=name&optioncount=1&feed=RSS’); ?>

After adding the above code, a list of categories will be rendered with dedicated RSS links, so that you can reference them elsewhere if you so wished.

<< Category Images Hack Contact >>

Leave a Reply

Your e-mail will never be published.

Your Details

Your Comment