Making money is the concept that everyone likes, but monetizing gets hard at times. This is just another way you can monetize by inserting ads in your RSS Feeds. Feedburner does it for you, but it is only Adsense Ads, and there is a subscriber count limit. This short snippet will help you insert ads, or anything else for that matters in your RSS Feeds.
Open your functions.php and add the following code:
2 | function insertAds( $content ) { |
3 | $content = $content . '<hr />Check out Awesome WordPress Tips and Resources at <a href="http://www.AnSaRiTrixs.com">AnSaRiTrixs!</a><hr />' ; |
6 | add_filter( 'the_excerpt_rss' , 'insertAds' ); |
7 | add_filter( 'the_content_rss' , 'insertAds' ); |
If you don’t have a functions.php file in your theme folder then simply create one. Once you have uploaded this file, you are now displaying ads in your RSS Feeds.
This hack uses an add_filter() function which does not modify your core files at all. Many other hacks ask you to modify your core files which is a bad idea because you will need to modify everytime when you reinstall WordPress.