Support » Everything else WordPress » RSS Feed for Categories

Viewing 2 replies - 1 through 2 (of 2 total)
  • It done automatically.
    The feeds can be found at domain.tld/category/categoryname/feed

    That is if your WP blog is located at the root of your server. If not you might have to add /blog/ or something after domain.tld 🙂

    And of course it requires the nice URL feature to be enabled… Don’t know how to find the category feeds if it’s not.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Two ways:

    1. If you have pretty permalinks, look at a category page on your blog by clicking on a category link, or whatever you have to do to show the normal page for just one category. Then append “feed/” to that URL.

    2. If you’re not using pretty permalinks, use the homepage of your blog (like ht tp:// ) and append “?feed=rss2&cat=X” where X is the category id number.

    If you want to do this programmatically (in PHP), use the get_category_rss_link() function. It’ll be something like this:
    get_category_rss_link(true, $catID, ”);

    The true makes it actually show the link (use false to not show it and just return it to you). The catID is the number of the category. The last bit there is not currently used and so it doesn’t much matter what it is. This function works regardless of your permalink settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘RSS Feed for Categories’ is closed to new replies.