ovizii
8/15/2013 - 10:44 AM

Insert custom content into feed

Insert custom content into feed

// add custom feed content
function add_feed_content($content) {
  if(is_feed()) {
		$content .= '<p>This article is copyright &copy; '.date('Y').'&nbsp;'.bloginfo('name').'</p>';
	}
	return $content;
}
add_filter('the_excerpt_rss', 'add_feed_content');
add_filter('the_content', 'add_feed_content');