By default, the WordPress RSS feed only shows recent blog posts. However, if you use custom article types that are meant for other
content, you may want to include them in your main RSS feed as well.
In this article, we will show you how to easily add custom article types to your RSS feed in your WordPress dashboard.
The rich site summary is a data format for publishing feeds, and it is a means to enable different programs and systems to use the content
published by other systems, and an application to enable users to follow the latest site news without the need to visit each site
separately, or it is a technology for writing content so that we can transfer it to another site.
First off: Why add custom post types to your main WordPress RSS feed?
By default, WordPress has two common types of content called Posts and Pages.
However, you can also create custom post types to add more content types if needed.
For example, a movie review website might want to create a post type dedicated to movie reviews with custom ratings
appropriate for that particular content type.
Now, your custom article types can have their own RSS feed which users can access by adding /feed/ at the
end of the custom article type archive URL.
However, post-custom type feeds are not easily detected.
If a user enters your website URL into their feed reader, they will display the option to subscribe to the
RSS feed in the main WordPress.
However, let’s see how to easily fix this by adding a custom post type to the RSS feed in the homepage.
Add all kinds of custom articles to your WordPress RSS feed
This method allows you to add all kinds of publicly available articles for inclusion in your homepage’s RSS feed.
You will need to add code to your WordPress site.
If you haven’t already done so, just copy and paste the following code into your jobs.php file or into a website plugin.
This code simply modifies the default query for fetching RSS feeds by adding all kinds of publicly visible articles to the query.
This will allow you to add pages as well as all sorts of other custom articles or posts in your main RSS feed.
Add custom and specific article types to your RSS feed
This method is more flexible and allows you to choose the types of articles or posts you want to include in your main WordPress RSS feed.
Simply copy and paste the following code into the website.
You can now visit your WordPress RSS feed to see this code in action.
We hope this article helped you add custom posts to your main WordPress RSS feed.
If you liked this article, you can follow us on the link https://www.dr-wp.com.