If you have problem while using the recipe here, try that one:
Simply paste the following code on the functions.php file from your theme. Create that file if it doesn't exists by default.
function insertRss($content) {
if(is_feed()){
$content = 'text before content'.$content.'<hr /><a href="http://www.wprecipes.com">Did you visited WpRecipes today?</a><hr />';
}
return $content;
}
add_filter('the_content', 'insertRss');
Another great way to insert ads or anything in to your rss feed is the Rss Footer plugin by Joost de Valk.
Thanks to Julien Chauvin for the great tip!
14 Responses
Does this work in feedburner?
@levin: Didn’t tried, but it should work. You’ll probably have to resync your feed, though.
Yeah, It’s working for me in FeedBurner without any problems.
JBJ, Do you have any idea to insert ads in the midle of post, like yours?
@rismaka: Actually, the ads on the middle of the post here may be a theme or design thing. The feed is a completely different thing.
Trackbacks: