Get total number of comment of the posts written by an author
You could use get_comments(), this way you don’t have to loop through posts. <?php $args = array( ‘post_author’ => ” // fill in post author ID ); $author_comments = get_comments($args); echo count($author_comments); ?>