With the onset of FeedBurner and similar services, a lot of bloggers will find themselves not using the default location for the RSS/Atom feeds. But if you want to provide the links to these new feeds, you’ll have to edit the template files any time you change templates, and make sure you remember to edit all the templates you use (if you’re implementing template switching) and remember to update the
<link> tags in the HTML head as well.
This just seems too messy, especially when the location of the feeds isn’t hard-coded into the templates, but is generated with a function. So this plugin allows you to set the URLs of the RSS and Atom feeds for your posts. It’s a very simple plugin that just adds a page to the ‘Manage’ admin menu called ‘Feed Locations’ and it provides you with five text boxes: RSS .92, RDF (a.k.a. RSS 1.0), RSS 2.0, Atom & the Comments RSS 2.0 feed. You can change any or all of the locations, if you leave one blank it will stay as the default WordPress location for that feed.
So what this means is that if you set your RSS 2.0 feed location to, say, a FeedBurner url, anywhere that your templates show a link to /feed/ (the default location of thye RSS 2.0 feed) it will be replaced with the FeedBurner address. No editing of the templates required. And it will remain no matter what template you use.
Installation & Setup
Download the plugin (see download link under ‘Plugin Information’ on the sidebar) and put the file in your
/wp-content/plugins/ directory. Activiate the plugin and then click on the ‘Manage’ menu and then ‘Feed Locations’. You should see a page that looks like this:
From there, just enter the respective urls and then click ‘Update’. That’s it. Told you it was a simple plugin.
The function that the templates use to get the feed locations is
bloginfo('atom_url') etc. So anywhere that you want to use the feed locations you’ve set, use those functions. The available parameters are:
- rss_url (RSS .92)
- rdf_url (RDF, RSS 1.0)
- rss2_url (RSS 2.0)
- atom_url (Atom 0.3)
- comments_rss2 (Comments RSS2.0 feed)