Create a custom RSS feed template for WordPress

Creating a custom RSS template is pretty easy. I’ll show you have to do it in 3 steps.

NOTE: Browsers heavily cache RSS feeds. While developing, open your browser in Incognito Mode!

1) Register the template

Place the following into functions.php

https://gist.github.com/gregrickaby/9403680

2) Create the template file

Create a new file named, feed-short.php and place it inside your theme’s directory

https://gist.github.com/gregrickaby/9403660

3) Flush Permalinks

custom-rss-template-wordpress

Now your custom RSS feed can be found at
http://yoursite.com?feed=short

About Greg Rickaby

Director of Engineering @WebDevStudios / Author & Tech Editor @ForDummies / @WordPress Contributor / @gatsbyjs Maintainer / Follow Greg on Twitter

8 Comments

  1. RSS FEED taking over Slug - Wordpress Helpdesk on November 19, 2014 at 3:30 pm

    […] I followed this tutorial https://gregrickaby.com/custom-rss-template-wordpress/ […]

  2. […] Greg Rickaby – Custom RSS Template in WordPress […]

  3. Raylo (@raylonet) on March 10, 2015 at 4:09 am

    simple stuff that works, thanks for the help

  4. Said Erraoudy on June 23, 2015 at 11:12 am

    thanks alot bro (y) !

  5. lettjacob on August 18, 2015 at 3:47 pm

    Thank you for taking the time to share this. Works great!

  6. zaheerabbasaghani on September 10, 2015 at 1:43 pm

    Thank u very much

  7. Saiful on March 14, 2016 at 12:05 pm

    It ‘s nice to do with custom Feeds.
    Thanks a lot.

  8. […] to Greg Rickaby for the alternative RSS template tutorial. You still have to read the code to change it to your […]

Leave a Comment