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!


Related posts:

If you enjoyed this post, make sure you subscribe to my RSS Feed
Comments are closed.
Highslide for Wordpress Plugin