Add text to wordpress RSS feed

Using this code to add text to the RSS Feed. However nothing is being added. Not sure what I am doing wrong here.

function postrss($content) {
if ( is_feed() ) {
$content = ‘This post was written by Joanna ‘.$content.’Check out my site’;
}
return $content;
}
add_filter(‘the_excerpt_rss’, ‘postrss’);
add_filter(‘the_content’, ‘postrss’);

Read more here:: Add text to wordpress RSS feed

Leave a Reply

Your email address will not be published. Required fields are marked *