Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i'm hoping i'd find some help in regards to inserting ads into wordpress default rss feeds (i do not use feedburner)

function insertAds($content) {
    $content = $content.'<hr /><a href="">Have you visited WpRecipes today?</a><hr />';
    return $content;
add_filter('the_excerpt_rss', 'insertAds');
add_filter('the_content_rss', 'insertAds');

Source here

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?


share|improve this question
none of those are deprecated there still in use according to WordPress codex. – xLRDxREVENGEx May 24 '11 at 17:50
The codex discourages use of the_content_rss in favor of the_content_feed – Dave Konopka May 24 '11 at 17:55
Thanks. I've used the_content_feed and the_excerpt_rss – Sledge81 May 24 '11 at 18:27

2 Answers 2

up vote 2 down vote accepted

Take a look at the_content_feed as a replacement for the_content_rss.

share|improve this answer

Those filters aren’t deprecated. They are used in wp-includes/default-filters.php too.

But you should prefix your function name.

share|improve this answer
This should probably be a comment – xLRDxREVENGEx May 24 '11 at 17:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.