How to Promote your RSS feed on every post

Adding this snippet to the functions.php of your wordpress theme will add a link to your rss feed at the bottom of every post. If you are looking to get some new subscribers this is a great way to promote your feed.

WORDPRESS SNIPPET : PHP

function wps_promote_feed($content,$class = "promote") {
    echo $content;
    if (is_single()) {
?>
        <div class="<?php echo $class; ?>">
            <h3>Enjoyed this article?</h3>
            <p>Please consider subscribing to our <a class="feed" href="<?php bloginfo('rss2_url'); ?>" title="Subscribe via RSS">RSS feed!</a></p>
        </div>
<?php
    }
}
add_filter('the_content','wps_promote_feed');

( WordPress codex functions, hooks, in this snippet. )

the_content, bloginfo, is_single, add_filter, wp,