You can hook into the request
filter and set the post types to whatever you wish:
add_filter( 'request', 'cpt_in_rss' );
function cpt_in_rss( $request ) {
if ( isset( $request['feed'] ) && ! isset( $request['post_type'] ) ) {
$request['post_type'] = [ 'post', 'cpt1', 'cpt2' ];
}
return $request;
}
Here’s a trac ticket about what you are asking.
Related Posts:
- How to Make a Separate RSS Feed for Each Custom Post Type
- How to fetch custom post types with its full data on wordpress?
- Add Custom Fields to Custom Post Type RSS
- How can I generate a RSS feed based on a custom WP_Query?
- Custom post types – RSS lastBuildDate issue
- How to remove CPT comment feed from head?
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- RSS feed for dynamic set of custom taxonomies terms
- Include only recents custom posts in WP rss feed
- Display custom fields from custom posts in RSS feed
- Creating separate feeds for custom post types
- wp3 custom post types rss
- Disable permalinks, but allow RSS feeds
- Add Custom Term to RSS Feed Titles
- WordPress feed only shows first page of category
- Get link for feed of specific post type AND taxonomy
- Changing the RSS feed titles not working
- Unexpected behavior from custom taxonomies
- Breadcrumb that shows multiple custom taxonomies
- What am I doing wrong with my taxonomy?
- Help with Multi Level Category Archive Page
- Looping through custom taxonomy in one template
- WordPress query posts by custom post type not workng
- How to hook save-post function to use taxonomy term in post-slug?
- Custom post type and taxonomies structure
- Change the url of a custom post type to include taxonomy
- Form to custom post type and custom taxonomy
- WordPress get all post with like in terms [duplicate]
- Displaying custom posts in categories
- Get posts of an specific term of a custom taxonomy
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- Best approach to allow front-end display of posts’ reviewers?
- Query pulling all taxonomies, not one I am specifying
- Custom post type archive page not showing on archive-posttype.php
- CPT url rewriting : regular posts return 404 error
- Post Custom & Taxonomy 404 error
- Show custom taxonomy not in submenu
- WordPress add taxonomies/terms list as a menu in archive page
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Creating adminable dynamic filtering on custom post type
- Should I make a taxonomy to organize data like this?
- Custom Post Type tag taxonomy “Page Not Found”
- Custom Post Type Taxonomy – Permalinks generating, but posts not found
- Remove custom post type slug but keep related category taxonomy permalink
- Custom Taxonomy is disabled on Edit page
- Need some suggestion/help with custom post types project
- page not found for example.com/custom-post-name
- Display posts grouped by post type in taxonomy.php
- Advice on Categorization for a Custom Post Type
- Custom post type based on existing one
- Pods pagination erases my sub menu
- Override “Parent” input for custom taxonomy
- Best way to use Category & Custom Fields?
- Decrement term in for each
- How to have permalink structure based on taxonomy terms
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Problem with type plugin and custom taxonomies
- Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
- Display Taxonomy Term for CPT on single-CPT.php
- Ordering Posts List By Taxonomy Terms?
- Force WordPress to only match URL in category
- CPT Efficient way to display posts from different categories with custom query
- Custom Taxonomies in body class with parent slug
- Custom Post Type categories at edit post not hierarchical
- Multiple archives for cpt, taxonomies, terms
- YearWise Categorywise Post
- How to Fix WordPress 500 Internal server error due to custom post type
- Custom post type with custom taxonomy permalinks
- Custom taxonomy in custom post type archive with pagination
- Same permalink structure for all post types?
- Best way to group posts based on custom post type terms
- Hide Custom Taxonomy title if not associated with another Custom Taxomony
- How to display category wise posts on seprarate template
- Get archive of posts separated by taxonomies and subtaxonomies
- Custom post type AND custom taxonomy are not connected
- Query Pulling the same post twice
- template structure for CPT not clear
- Dropdown switching subcategories portfolio
- Multiple post types or single post type with category taxonomy?
- How to add base permalink to custom posts?
- Cannot retrieve Custom Taxonomies (Disappeared)
- Add a meta to custom post type which corresponds to a particular taxonomy
- Custom Post type and Taxonomy in post URL error
- Is it possible to add and display custom post types to an array?
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- Custom post type and custom taxonomies display
- WP_Query for CPT with filter by another WP_Query
- Display Custom taxonomy, Child terms and posts in a template Under Specific Parent terms
- Get posts in same category not working
- Heirarchical URLs with CPT and custom taxonomy
- Custom taxonomy page template
- Displaying taxonomies with manage_{custom-post-type}_posts_custom_column
- How do I put `tax_query` in this WP_query?
- WordPress custom post type advise
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Generating a radius search on postmeta-metavalue and adding a taxonomy to query
- WordPress Custom taxonomy template
- Plugin Error on activating
- Associate custom categories to different user IDs