The Artima Developer Community
Sponsored Link

Python Buzz Forum
Wordpress Plugins - writing extra elements into RSS feeds

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
Wordpress Plugins - writing extra elements into RSS feeds Posted: Dec 3, 2005 3:46 PM
Reply to this message Reply

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
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

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');

Comment

Read: Wordpress Plugins - writing extra elements into RSS feeds

Topic: Random thoughts #1 Previous Topic   Next Topic Topic: What is Paste, yet again

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use