If you wish to add extra information to the <item> tag in your WordPress RSS feed, simply add this to your themes functions.php file:
function rssExtraInfo() {
echo '<extra-info>Here is some extra info</extra-info>';
}
add_action('rss2_item', 'rssExtraInfo');
We often take the RSS feed from a clients blog and use it to add additional content to their site. We recently had a site which used a small image to represent each blog post – but this wasn’t automatically included in the WordPress RSS feed. So we modify it using the above code (adding some dynamic code to get the custom field which held the path to the image). Now, the site which reads the RSS feed looks more attractive as it can use the images.
Tags: wordpress