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

  1. LindenWalsh
    Posted 4 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Subscribe To Comments Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic