WordPress Feed Templates

Inspired by Grubers new RSS feeds, I’ve been meaning to add a small heart icon in my RSS feed, right next to full posts (such as this). Easy peasy right?

Well, yes and no. Gruber uses MT, which I remember has a special template for the feeds. WordPress, does not. In WordPress you have to edit a core file called wp-rss2.php, a file that’ll easily be overwritten in an upgrade. In other words, having a template for the look of your feeds means upgrading will be easier.

Good idea? I think so. Apparently enough people think so too, that a patch has been made, which when applied will allow you to create custom feed templates right in your theme directory. As far as I can see, it’s an obsolete patch with newer versions of WordPress. Too bad it’s not already part of WordPress.

6 thoughts on “WordPress Feed Templates”

  1. Brendan says:

    I ended up hacking the heck out of my ATOM and RSS feed templates. I have a copy locally so on each upgrade I simply uploading them back.

    One of an alarmingly-quick growing list of reasons for why I’m changing platforms.

  2. gareth says:

    where are you going Bredan? MT?

  3. Brendan says:

    Either Expression Engine, or more probably Textpattern. I’m afraid with the latest round of changes, WP no longer encourages me to push the envelope – each new release seems to bring a raft of db or code changes that break content and renders templates as useless in the process.

    It makes the entire development and, well, use far far harder than it needs be at all.

  4. Joen says:

    I can understand and respect your wish to switch.

    I’d like to point out that Chris has an extremely enjoyable time using Expression Engine…

  5. Derek says:

    I actually just got done modifying my feed to do this. I modified my wp-includes/feed-rss2.php with a conditional statement to determine which posts are full articles:

    if(in_category(4)) the_title_rss(); //category 4 being my linked list
    echo("* ");
    } ?>

    I went further by changing the link of linked list items to the external link (as opposed to a link back to my site), and adding a permalink to the bottom of linked list items. The result is an RSS feed very reminiscent of the Daring Fireball feed.

    I’ve made so many modifications to WordPress now that I’m afraid to upgrade to 2.3. Since it’s going to be a lot of work either way… would you recommend a switch to Movable Type instead?

  6. Joen says:

    I?ve made so many modifications to WordPress now that I?m afraid to upgrade to 2.3. Since it?s going to be a lot of work either way? would you recommend a switch to Movable Type instead?

    I actually managed to do the same. There’s now a heart icon in my feed.

    Well, while it’s been a major headache upgrading to 2.3 for me, I wouldn’t recommend switching anywhere. Not because there aren’t alternatives, I’m sure there are, it’s just I haven’t tried them for so long.

    I guess I’m pretty much married to WP now. It’s kinda like democracy.. it’s the worst form of government: it’s just better than all the others.

Comments are closed.