Code To Insert Ads In RSS Feed Of WordPress Blog?

Posted by


In order to add the Ads in RSS feed of the blog, you need to add this code in functions.php file of the theme:

function insertRss($content) {
$content = ‘text before content’.$content.'<hr /><a href=””>Best Free WordPress Theme Templates</a><hr />’;
return $content;
add_filter(‘the_content’, ‘insertRss’);

That’s it!


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.