How to Add Custom Post Types to Your Main WordPress RSS Feed

Recently, I was checking the RSS feed of my news blog Techlomedia and found that its review articles are not there. Then checked and got the reason for this. WordPress never include Custom Post types in main RSS feed. It only includes Posts. There is a separate feed for custom post type. It can be accessed at : http://example.com/feed/?post_type=yourposttype.

If you are using Custom Post Types and want to include those articles into the main RSS feed, you need to do little code modification. In this article, I will share how you can add Custom Post Types to your main WordPress RSS feeds.

Add Custom Post Types to Your Main WordPress RSS Feed

For this, you need to edit the functions.php file of your WordPress theme. Open that file and add the code given below.

This will include all your custom posts into main RSS feed. But what if you want to include only selected Custom Post Types but not all. For this, you can use the code below.

Try these codes to add your custom Post types into main RSS feed of your blog.

Source: Core Trac Ticket #12943

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest updates, web design resources and tools.

You have Successfully Subscribed!

About The Author

    ADD YOUR COMMENT

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Receive fresh web design resources and SEO tips in your email by our weekly newsletter

You have Successfully Subscribed!

Pin It on Pinterest

Share This

Share This

Share this post with your friends!