Greg Rickaby

Greg Rickaby

Cameras and Code

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

catergorized inCode
tagged withhow to, snippets

Comments