i’m hoping i’d find some help in regards to inserting ads into wordpress default rss feeds (i do not use feedburner)
<?php
function insertAds($content) {
$content = $content.'<hr /><a href="http://www.wprecipes.com">Have you visited WpRecipes today?</a><hr />';
return $content;
}
add_filter('the_excerpt_rss', 'insertAds');
add_filter('the_content_rss', 'insertAds');
?>
But i read that the_excerpt_rss and the_content_rss is kind of deprecated. Can anyone advise me on the present hooks to use?
Thanks
Take a look at the_content_feed as a replacement for the_content_rss.
Those filters arenât deprecated. They are used in
wp-includes/default-filters.php
too.But you should prefix your function name.