RSS is simple ways to tell our readers what news on our sie, WordPress has designed with many feed format. And Now let’s me show you how to tweak RSS Feed with extra function we can added content on our RSS Feed post. On today wp tricks, we will show you how to added extra content in our RSS post.
Write down Add Content to the End of Each RSS on functions.php
function feedFilter($query) {
if ($query->is_feed) {
add_filter('the_content','feedContentFilter');
}
return $query;
}
add_filter('pre_get_posts','feedFilter');
function feedContentFilter($content) {
$content .= '<p>Join our <a href="http://www.facebook.com/pages/WPTricks/119013298127633">WP Tricks Facebook Community Page</a></p>';
return $content;
}
That’s it’s now if you check on your RSS Feeds you’ll find extra content at there. Thanks for Pro Blog Design share this




Pingback: 20 More WordPress Code Snippets and Hacks
Pingback: 20 More WordPress Code Snippets and Hacks | FlexLib
Pingback: 20 More WordPress Code Snippets and Hacks | The best Tutorials
Pingback: 20 More WordPress Code Snippets and Hacks « Free UK Web Design
Pingback: 20 More WordPress Code Snippets and Hacks- rampantdesigntools.com
Pingback: 20 More WordPress Code Snippets and Hacks | Programming Blog
Pingback: 20 More WordPress Code Snippets and Hacks | Typography Blog