Increase RSS Subscribers With WordPress Conditional Tags

This is the scenario: a new visitor, or a visitor returning after some absence, reads through the main page of your blog and clicks a “previous entries” or “older posts” link. Who is this visitor? What do we know about them? Well, 1. they want to read more content (congratulations!) and 2. (in the case of the returning visitor) they’re not subscribing to your blog.

How can we remind them of the benefits of subscribing at just the right moment, when the benefits are clearly apparent? Easy. Use a WordPress conditional template tag.

<?php if(is_paged()){ ?>
<div id="rss-remind">
<p>Subscribe to <?php bloginfo('name'); ?> and never miss an entry:<br /><a href="<?php bloginfo('rss2_url'); ?>">All Posts<span> (RSS)</span></a> | <a href="<?php bloginfo('comments_rss2_url'); ?>">All Comments<span> (RSS)</span></a></p>
</div><!-- #rss-remind -->
<?php } ?>

Here’s how it works: if someone clicks your “previous entries” link WordPress catches that with is_paged() and displays our little message that we’ve conveniently placed just above the Loop. This is what it looks like in the default theme on my test blog, “WordPress Theme Development”:

Remember, this is unstyled (and with a horrid <br /> tag—feel free to remove it) but there’s enough hooks in the markup there to make something that looks really cool.

Now when someone checks out what they’ve missed on your blog, or what other great content you’re offering, by clicking through to your paged entries, they see an option to never miss anything again. Sounds like a good idea to me.

Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

12 Comments

  1. Posted January 31, 2008 at 10:48 am | Permalink

    I love these little tips to improve your wordpress blog! Very different from the “crowd,” Thanks.

  2. Ian Stewart
    Posted January 31, 2008 at 11:10 am | Permalink

    Glad to be helpful, Ptah. And different from the crowd: for better or worse—and mostly by accident—I usually follow my own path.

  3. Posted March 10, 2008 at 9:19 am | Permalink

    I’m wondering why you put your PHP if (is_paged()) BETWEEN the and not wrapping the div. If the div is customized with with padding and background it could be horrible to see.

    And actually I don’t understand why on paged content : why not on single post or pages ? I can’t get the point of the increase just through paginated content.

  4. Posted March 10, 2008 at 9:40 am | Permalink

    As Oncle Tom noticed it, the condition should embrace the div, otherwise causing some disturbing display effects. Shouldn’t it?

    The interest of conditionning the invite to paged display is explained within the above post: it suppose that your reader asks for next page, that (most probably) signifies that he’s not yet read previous posts and thus not yet subscribed to tour blog. Despite the fact you promote your RSS feeds in many places of your blog ;-)
    Thanks to this contextual invite, the reader may be receptive and click to subscribe.

    That’s How I understood.

  5. Posted March 10, 2008 at 9:45 am | Permalink

    Hum… not to used to read code, actualy the “if” is within the “div”, the fact is it could be better around the “div”, instead.

  6. Posted March 10, 2008 at 9:52 am | Permalink

    OK I had the point but if you read an article you may not have subscribed to the blog too.

  7. Posted March 10, 2008 at 10:00 am | Permalink

    Thanks, fxbodin and Oncle. I changed the code. You’re both right, the div should have been within the statement.

    Oncle, a subscribe-call-to-action works great on single post pages too. I was sorta just pointing out an untapped use of WordPress tags and typically unused spot in WordPress themes. Hope that helps get into my thinking.

  8. Posted March 10, 2008 at 10:01 am | Permalink

    I implemented the trick on Chroniques de l’Iboga. It works (waiting for new subscribers, now)

    Actually you may make your blog act so whatever your (supposed new) reader internal link clicks: tag, category, contextual link…

  9. Posted March 10, 2008 at 10:10 am | Permalink

    Ian, I definitely agree on this usage.

    Maybe all this could be done through Wordpress filter hooks ? If yes, it’s a good idea for a plugin and a simple admin configuration like that :
    [ ] promote feeds on posts
    [*] promote feeds on paged results
    [ ] promote feeds on search results etc.

  10. Posted March 10, 2008 at 10:15 am | Permalink

    That is a good idea for a plugin!

  11. Posted March 10, 2008 at 10:28 am | Permalink

    He he. If you need a french translation just mail me.

  12. Posted July 10, 2008 at 5:40 pm | Permalink

    Hey Ian, you should enter this tip in my Building RSS Group Writing Project:

    http://groupwritingprojects.com/blog/building-rss-group-writing-project/

    All you would need to qualify for over $350 in prizes - including consults with Liz Strauss and David Airey - is to link your above article to the announcement post at the above link. Although additional tips before Sunday night’s deadline would increase your chances of winning even more.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. In addition, you may find yourself fitter, happier and more productive. Comment away.

Subscribe without commenting