Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Insert custom content in WordPress RSS feed. Source: http://www.wprecipes.com/how-to-insert-ads-on-your-rss-feed
<?php
//* Add custom content in WordPress RSS feed
function customprefix_add_custom_content_rss_feed($content) {
$content = $content.'<hr>Add custom content here!<hr>';
return $content;
}
add_filter('the_excerpt_rss', 'customprefix_add_custom_content_rss_feed');
add_filter('the_content_rss', 'customprefix_add_custom_content_rss_feed');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.