Add a custom call-to-action to all posts in your RSS feed

This one’s a great hack for getting maximum value out of your RSS feed. Add the following code to your functions.php file, and you can control the content that appears in the footer of every post that shows in your RSS feed.

function wpbeginner_postrss($content) {
if(is_feed()){
$content = 'This post was written by Syed Balkhi '.$content.'Check out WPBeginner';
}
return $content;
}
add_filter('the_excerpt_rss', 'wpbeginner_postrss');
add_filter('the_content', 'wpbeginner_postrss');



6.8
Implementation: 3 hours
Effectiveness: 4/5
Difficulty: 5/10
TAGS
#Tools #Wordpress #Editing