Inspiration For Creative Minds
Home » Labs » How to show the total number of comments in WordPress  

Filed under Labs

Adding below code snippet to your WordPress theme will display the total number of approved comments.

 
<?php
 
	$number_of_comments  = get_comment_count();  
	$number_of_commentsm  = $number_of_comments['approved']; //approved, 
 
	echo $number_of_comments;
 
?>
It's only fair to share...Share on Google+Tweet about this on TwitterShare on Facebook
Labs

Posts you may like: