WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe To Comments Reloaded
Tip: Getting subscriber count to display on the front end (1 post)

  1. LindenWalsh
    Member
    Posted 2 years ago #

    Just wanted to post a quick tip for anyone who wants to display a count of "followers" for comments on a post.

    //get the amount of people following the comments via Subscribe to Comments reloaded
    $folowersnum = $wpdb->get_results(
            "SELECT meta_id
    	FROM $wpdb->postmeta
    	WHERE post_id = $post->ID and meta_key LIKE '%_stcr@_%'"
    	);
    $followers = count($folowersnum);
    echo $followers;

    I'm not sure if there's a better way to accomplish this but it works fine for me. Hope it helps someone looking to do the same.

    http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags