[wp-hackers] Changing the RSS feeds Outputted by get_header

Alex Andrews awgandrews at gmail.com
Sun Feb 3 18:26:24 GMT 2008


Wordpress sticks in two RSS feeds when get_header is called, for example:

<link rel="alternate" type="application/rss+xml"
href="http:/blah.com/feed/" title="Records On Ribs Posts RSS feed" />
<link rel="alternate" type="application/rss+xml"
href="http:/blah.com/comments/feed/" title="Records On Ribs Comments
RSS feed" />

How can I, within a plugin, replace these default feeds for the whole
blog with my own custom feeds that are from my plugin, and exist on
the pages the plugin generates? Sure, I can add an action to wp_head
but this won't remove the already existing feeds, thus confusing a
browser when they click the rss icon.

Thanks very much indeed.

Alex

-- 
http://recordsonribs.com


More information about the wp-hackers mailing list