Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Make Separate RSS Feed for Each Category in WordPress

Last updated on by
Elegant Themes
How to Make Separate RSS Feed for Each Category in WordPress

Often times bloggers wonder how to make separate RSS feed for their category. Because sometimes your user only visits your website for the design category, but you have ten other categories that the user is not interested in. How can you offer them a separate RSS Feed. In this tutorial, we will show you how you can do that.

Technically you don’t have to do anything.

Lets say you like WPBeginner’s Showcase Category and want to subscribe to it. The category URL is:

http://www.wpbeginner.com/category/showcase/

You simply need to add the word feed infront of it like this

http://www.wpbeginner.com/category/showcase/feed/

So if you let your users know that, then you can give them an opportunity to subscribe to it. You can specifically ask your designers to add this in the theme when users open category pages, they can subscribe to the category itself.

Now there is another code that will help you letting your users subscribe to separate RSS by letting them know they can. You can’t manually email your readers and ask them to do this. Instead what you can do is use this code:

<?php wp_list_categories('feed_image=http://www.wpbeginner.com/image.gif&feed=XML Feed&optioncount=1&children=0'); ?>

Now you must change the url to the feedimage because it will display an RSS Icon next to your category list. You can paste this code in your sidebar where you have the category code.

Now you can have separate RSS feed for each category in WordPress.


Editorial Staff at WPBeginner is a team of WordPress lovers led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. burak says:

    i just want to do like yours (as your side bar suscribe section) i will be glad if you explain me because i couldn’t undertand :S

  2. Shelley says:

    When I add “feed” to the end of the url of the category I want a feed for (http://www.wpbeginner.com/category/showcase/feed/), it just takes me to the full feed of my entire blog with all posts rather than just those in the category I specified. Is there a setting I need to change that you can help me with?

    • Editorial Staff says:

      We are redirecting all feeds to our main feeds. But on normal sites, that feature should work fine.

  3. HelyRojas says:

    Excelente, y yo buscando plugins para algo que wordpress hace por defecto. Thanks

  4. milest says:

    Thank You for this tip!

  5. Mark in Tallinn says:

    I’m actually looking for a way to add cat feeds to header for autodiscovery… must be a plugin for that?!

  6. Yui says:

    Hello. I was really interested by this but I was wondering where this went? On my blog I have the categories section in the sidebar, on my friends blog which I set up the categories menu is a dropdown at the top and putting a categories in the sidebar looks un-neat. I was wondering if there was a way to display a link saying ‘Subscribe to RSS’ leading to something like http://rmagic.yui-dev.co.cc/uncategorized/feed/ which would then lead to feedburner. Is it possible? Thank you for all your great tutorials, I have used many of them on my blogs and they are running perfectly well!

  7. DaveK says:

    Thats very handy to know, will be useful on an upcoming project I have. Thanks.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.