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 a Separate RSS Feed for Each Custom Post Type in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Make a Separate RSS Feed for Each Custom Post Type in WordPress

Everyone is utilizing Custom Post Types in their new WordPress sites because this is a very powerful feature. One of our users asked us how can they create a separate RSS feed for a specific custom post type in WordPress. In this article, we will be answering that question.

You would think that it require a lot of coding, but it doesn’t. It works just like creating a separate RSS feed for each category in WordPress. You can simply type this URL:

http://www.yoursite.com/feed/?post_type=book

Just change the post_type name to the one that you want to create a separate RSS feed for. Are you looking to take it to the next level and make it for a specific custom post type and custom taxonomy? Well that is not hard at all either:

http://www.yoursite.com/feed/?post_type=book&genre=romance

As you can see in the code above, that genre would be the custom taxonomy, and romance would be the tag if you may call it that. You can create a button in your sidebar to link to that. You may also link this feed and create a separate feedburner feed for it.


Editorial Staff at WPBeginner is a team of WordPress experts 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. Cédric Charles says:

    Hi and thanks for this !

    I would like to add custom fields for my custom post type feed (not for the regular posts, only for my custom post type).

    How could I do that ?

    Thanks a lot !

  2. Toni says:

    Great tip! I almost made it from scratch! thank you!

  3. erika says:

    Thank you a lot! your website helped me so much :)

  4. mike says:

    I’ve gotten this to work but it limits the posts in the rss feed to 10 when I feedburn it. Is there any way to create a full rss feed for custom post types without limiting the quantity of posts it pulls in?

    • Editorial Staff says:

      Main feed normally displays the most recent posts. If a user tries to pull your feed using their feed reader, it will pull all older posts as well.

  5. Andrew says:

    Hi there. Could you tell me how to create a feed for all post types, so someone can signup to a single RSS feed for all posts on the site, regardless of which post type they are in?

  6. Rems says:

    THANK YOU VERY MUCH, i was looking for this info for 2 hours. Glad i found your info. Fu…. taxonomy, where were you?!! aahhh!
    Work so fine now

  7. gabearnold says:

    Thanks! This is simple and a nice tip I didn’t know.

  8. AlexAmelines says:

    it works for me and I love you for it. I created a link to each pos type I’ve got, but in the RSS reader they are all called the same, any way I can affect the title of the feed to reflect the post type?

  9. Alan says:

    If I am using a slug re-write for the taxonomy that wouldn’t make a difference and be causing the problem would it? I’ve tried both ways and it doesn’t work either way, with the actual registered taxonomy title or the slug.

  10. Alan says:

    No plugins. But I haven’t been able to figure out how to url my taxonomies with my custom post types like…

    http://www.mysite.com/custompost/taxonomy/taxonmyterm

    It’s just…

    http://www.mysite.com/taxonomy/taxonomyterm

    Would this have an effect?

  11. Alan says:

    That doesn’t seem to work with the taxonomies.

  12. Aldi says:

    I can’t seem to make that work. It only takes me back to the custom post type archive page again.

    Btw, I use Custom Post Permalinks plugin to allow custom post type permalinks and archive pages. Could that have created the issue??

    Cheers!

    • Aldi says:

      Oops, sorry.. it was my theme’s problem. I had an action call to redirect anything that is related to custom post types, thus the redirection of the feeds. But got it fixed now.

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.