Posted by KaiseRCrazY on 24th July 2009

Do you want to add your ads to your Blog Feed?

Some of my friends are use feedburner with adsense. That’s good but i think feedburner’s policity is not good. If you think like me you can add your google ads to your blog feed. It’s simply and more useful than feedburner. When someone subscribe your feed he/she can click your ads from any RSS reader. Lets begin…

We make changes on your themes functions.php. If your theme have no functions.php simply create one and paste this code in your file ;

Here is the Code;

<?php
 function insertAds($content) {
 $content = $content.'<hr /><a href="http://www.wpfunc.com">Hola, Awesome, Quick, Simple WordPress Functions</a><hr />';
 return $content;
 }
 add_filter('the_excerpt_rss', 'insertAds');
 add_filter('the_content_rss', 'insertAds');
?>

If you change $content area (between <hr/> and <hr/>) you can change it with your google adsense code.

That’s All! Have a nice day!

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

    1 Response

  1. [...] Do you want to add your ads to your Blog Feed? [...]

Post your comments