How To Add Content to the End of Each RSS Post


Sponsored Links




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.

Add Extra Content on RSS Post - Candice Swanepoel Victorias Secret-Bombshells Photo

Add Extra Content on RSS Post - Candice Swanepoel Victorias Secret-Bombshells Photo

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

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net


7 Responses to How To Add Content to the End of Each RSS Post

  1. Pingback: 20 More WordPress Code Snippets and Hacks

  2. Pingback: 20 More WordPress Code Snippets and Hacks | FlexLib

  3. Pingback: 20 More WordPress Code Snippets and Hacks | The best Tutorials

  4. Pingback: 20 More WordPress Code Snippets and Hacks « Free UK Web Design

  5. Pingback: 20 More WordPress Code Snippets and Hacks- rampantdesigntools.com

  6. Pingback: 20 More WordPress Code Snippets and Hacks | Programming Blog

  7. Pingback: 20 More WordPress Code Snippets and Hacks | Typography Blog

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>