• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How to Add Custom Post Types to Main Feed

How to Add Custom Post Types to Main Feed

In our recent project for a client, we needed to include few custom post types we built in the main RSS feed of the site. Specific for that project, we built few custom post types – video, pictures and etc – to make it easier for the client to manage their contents.

However, the default RSS feed for WordPress only includes Post post type. Therefore, every time the client publishes something under the custom post types, those posts won’t be included in the main RSS feed. In other words, readers who subscribed to their RSS won’t be notified with new posts published in those custom post types. This is bad.

The snippet below will add all post types, including any custom post types to your main RSS feed. Thanks to Yoast for this awesome snippet. You may drop the code in functions.php of your child theme or even better, functionality plugin. You may find more information about the code from the Core Trac WordPress.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us