Home » How To

How To Do Category Feeds In WordPress

I received an email today on splitting WordPress feeds up – that is, how to make a separate feeds for a page or topic.

The easiest way by far it to put that post in a separate category, and then offer a category feed as a URL:

http://egwebsite.com/?feed=rss2&cat=1

In this case, the blog would be at the ‘root’ of egwebsite.com – it is isn’t, then change that. For example, a site based on ‘myblog’ would be more like:

http://egwebsite.com/myblog/?feed=rss2&cat=7

To get the category ID, look into the Manage;Categories section, and click on a category (or hover your mouse over the link) – the link will look something like this:

http://egwebsite.com/wp-admin/categories.php?action=edit&cat_ID=5

…and you have your category (cat_ID=5).

Now of course this isn’t without some problems:

  • The feed is named the same as the regular feed – confusing for visitors, and may cause problems with some feed readers.
  • Note this is for POSTS, not PAGES.
  • If you’re using a RSS feed product product (like FeedBurner) you may find the feed is not available to modify (FeedBurner has a WordPress plugin that ‘hijacks’ all feeds to replace with theirs).

However, if you wish to offer a specific feed to a site (for example, product feed) this can be a way to get something out there.

Digg this! Add to del.icio.us! Stumble this! Add to Techorati! Share on Facebook! Seed Newsvine! Reddit! Add to Yahoo!

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.