WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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="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');

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 codex.wordpress.org/Plugin_API/Filter_Reference/the_content_rss – 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
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.