Wordpress Technology

Wordpress Tips, Tutorials, Hacks

Add Content to RSS Feed

Code for inserting your own content to every RSS Feed of WordPress based blog is very simple

It can be usefull for inserting ads or banners.

Include the code must in functions.php of your theme.

function insertFeedFooter($content) {
	if(is_feed()) {
		$content.= "<h3>Some title</h3>";
		$content.= "<p>Some Advertisement, or code, or something else.</p>";
	return $content;
add_filter ('the_content', 'insertFeedFooter');


Both comments and pings are currently closed.

© 2009 | Made by Vancouver Web Design | Internet Marketing