This post originated from an RSS feed registered with Python Buzz
by Phillip Pearson.
Original Post: Wordpress Plugins - writing extra elements into RSS feeds
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Just trying to get a Wordpress plugin to add extra elements into an RSS feed, and I see that there isn't a proper API hook for this. It would be cool if an action (something like "write_extra_rss_elements") were called at the end of the <item> block. (Is there a plugin API wishlist somewhere?)
For the moment, I see that you can add extra XML into <item> by misusing the the_category_rss filter:
function add_rss_feed_elements($content) { echo "<Look_at_me__I_can_add_elements_to_the_feed__Woohoo__/>\n"; return $content; } add_filter("the_category_rss", 'add_rss_feed_elements');