Get a total count for all comments and display result

I would like to find out the number of comments in total I have and display the number on my website.

Related posts

Leave a Reply

2 comments

  1. Hi @stubudz:

    You are trying to make things easy on me today, right? 🙂

    Here’s what you need:

    $comment_counts = get_comment_count();
    echo $comment_counts['approved'];
    //print_r($comment_counts); // Uncomment to see all from get_comment_count()