Customise WordPress RSS Feeds

Here are the steps to modify or create your own WordPress RSS Feed without modifying the Core files.

  1. Copy /wp-includes/feed-rss2.php to your theme folder
  2. Edit it and make whatever changes you desire
  3. In your theme’s functions.php file, add the following function

 

How to change default RSS feed posts limit

By default RSS feed in WordPress shows 10 posts. This default count can be changed by adding below code in your functions.php file

In above code the limit is increased to show 20 posts