We usually see the number of WordPress comments made on our dashboard, but none of your advertisers cannot see that. If you have a page for advertisers, you might want to add this number to give them more reasons to buy advertisement space on your site. Especially when you are selling ads towards the comment area.
How to Display Comments Count in WordPress
All you have to do is paste the following code in a page where you want it displayed:
<?php $count_posts = wp_count_posts(); $posts = $count_posts->publish; $count_comments = get_comment_count(); $comments = $count_comments['approved']; echo "There's a total of ".$comments." comments on my blog, with an average ".round($comments/$posts)." comments per post."; ?>
This code will tell your advertisers or your site visitors, total comments your blog has, and the average number of comments on each of your posts. But sometimes, the per post number might be a decimal, but this code rounds it up to an integer value.