[Plugin: Subscribe To Comments Reloaded] Tip: Getting subscriber count to display on the front end
-
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/
- The topic ‘[Plugin: Subscribe To Comments Reloaded] Tip: Getting subscriber count to display on the front end’ is closed to new replies.