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

2) Create the template file

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

3) Flush Permalinks

custom-rss-template-wordpress

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

Author: Greg Rickaby

Greg is Lead Front-End Developer at WebDevStudios and author of a children's book titled, Creating a Website: Design and Build Your First Site!.

8 thoughts on “Create a custom RSS feed template for WordPress”

Leave a Reply