I'm trying to add some custom elements to a site's RSS feed. I thought it would be as simple as adding something like this to the active theme's functions.php:
function add_fields_to_videocast_rss_item() { echo "<test>This is a test</test>"; } add_action('rss2_item', 'add_fields_to_videocast_rss_item'); However, when I call the feed URL at: http://my.site.com/feed this code never gets executed. In fact functions.php isn't used. This doesn't match with the official docs on this in de WP Codex.
Anything I'm missing here?