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.


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>

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

the_content, bloginfo, is_single, add_filter, wp,

Optimization WordPress Plugins & Solutions by W3 EDGE