January 6, 2005 8:03am
Update: There feeds will no longer work as I have migrated to Habari.
I have decided to offer 3 different RSS feeds for this site now which are listed on the left - there's probably better ways of doing this within the code (and if there is, please let me know) but from a quick glance at the WordPress forums this seems the simplest.
Full Feed includes all posts to the site. If you've already added me to your aggregator, this is the one you currently have.Regular Posts only includes all regular posts such as this one without the Links.Links only includes all the interesting links I find every now and then and post a quick description of.
The way I have done this is as follows - to exclude a category from a feed, use /feed/?cat=-4 replacing the 4 with whatever category id you wish to exclude. To create a separate feed for a particular category, just remove the minus sign and insert the category id you wish to create the feed for.
Another way to generate a unique category feed is to use /archives/category/category_name/feed/. Essentially just adding /feed/ to your category URL. This is assuming you are using the mod_rewrite option to generate 'friendlier' URL's.
Hopefully this will be fairly future-proof and not break peoples subscriptions when upgrading WordPress. I have a local development version of the latest 1.5 release which I am playing around with. I am in the process of redesigning the site, and the "Themes" and "Pages" additions in the latest versions I am hoping will allow for better customisation without breaking too much of the underlying code base.
0 Responses to Separate Wordpress Feeds for Categories
Leave a Reply