How to show the Total Number of Comments in WordPress

Sometime Website Owner need comments number for Website, Comments are better for visitor involvement. Comment come and you reply on the Comments but why Comments Total number are important?  Answer is that Comment Total number motivate your visitor and they can guess your credibility in more clear ways. Here in this post we will how you display Total Number of Comments in WordPress.

Here we discuss two type of method for Total Comments. One is that you can use plugin for Total Comment Count, i.e better way because you do not have to put lot of efforts. But may be some developer do not like to install plugin because plenty of other plugin are already in use  and more plugin degrade speed of website.  Let’s see these two method in detail.

Display WordPress Totals Comment Count with a Plugin (Simple Blog Stats)

Install Simple Blog Stats and activate this plugin. After Activation go to Settings » Simple Blog Stats page for plugin configuration.


Plugin have short code options. Plugin not only show total number of comments, but also show approved comments,comments in moderation. There’s are more blog stats showing this blog.


Display WordPress Total Comments Count with PHP Code

Showing WordPress Total Comments by code require to copy code in WordPress file functions.php.

function wp_comment_count_bycode() {
$comments_count = wp_count_comments();
$message = ‘Total <strong>’. $comments_count-> are approved . ‘</strong> comments posted by our users.’;
return $message;


Above function show total approved WordPress comment,  use shortcode [wpress_total_comments] in WordPress posts, page for displaying comments.
You can also use it in text Widget.




We firmly believe that our article help you to display comments on WordPress Website and encourage your visitors.

Add Comment