I have put this code on author.php page
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //gets the number of comment(s) on a post $comments_number = get_comments_number(); //adds all the comment counts up $numbercomment += $comments_number; ?> <?php endwhile; ?> <span>A total of <?php echo $numbercomment; ?> comments have been made on this author posts.</span>
Currently i am using a loop to find number of a comments on a post and total it with all the other comment count on other posts. The consists of only the author's post so in that way i can find the number of comments people have made on that specific author's posts. Is there a simpler way of doing it.
I want to count the total number of comments people have made on all of that author's posts. Put the above code up in author.php file and you will get what i mean..