WordPress.org

Forums

Separate RSS feeds per category & other questions (5 posts)

  1. dimitry
    Member
    Posted 10 years ago #

    I'm looking for exactly what the title says, a separate feed for each category of the blog.

    Also, Im looking to modify the search engine a little bit so that one can search by category, etc. I know this is a super broad description of what Im trying to accomplish, but I haven't gotten all the info from the client. Just need to be pointed in the right direction.

    Thanks!
    Dimitry

  2. keikenti
    Member
    Posted 10 years ago #

    I've also been thinking about a way to get a RSS Feed for either the whole blog or for a specific (multiple?) categories?

    like: wp_rss.php?cat=2.5.12 would pick category ID 2, 5 and 12.

  3. I'm looking for exactly what the title says, a separate feed for each category of the blog.

    If you're using pretty permalinks, all you have to do is add /feed/ to the end of the category link. For example, the RSS feed for domain.com/wordpress/archives/category/category-name/ would be: domain.com/wordpress/archives/category/category-name/feed/

    If you don't have pretty permalinks enabled, just add ?cat=x (where x = your category's ID) to the end of wp-rss2.php. For example, the RSS feed for "Category Name", assuming that it's ID number is 10, would be domain.com/wordpress/wp-rss2.php?cat=10 .

  4. Kafkaesqui

    Posted 10 years ago #

    I'd also note that the list_cats()/wp_list_cats() template tags have a parameter to set a link to the rss2 feed for each category listed.

    http://codex.wordpress.org/Template_Tags/list_cats
    http://codex.wordpress.org/Template_Tags/wp_list_cats

  5. dimitry
    Member
    Posted 10 years ago #

    Thanks for your support guys.
    Exactly what I needed

Topic Closed

This topic has been closed to new replies.

About this Topic