Title: get_comments_number WRONG counting
Last modified: February 20, 2020

---

# get_comments_number WRONG counting

 *  [ra1dz](https://wordpress.org/support/users/ra1dz/)
 * (@ra1dz)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/get_comments_number-wrong-counting/)
 * i get the wrong counting in templates/comments/comment-form.php at line 29 near“
   if (!post_password_required($post->ID)) {”
 * the function “get_comments_number()” is multiply each comment by 3
 * i find solution by change this function to the next one
    wp_count_comments($post-
   >ID)->total_comments

The topic ‘get_comments_number WRONG counting’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ra1dz](https://wordpress.org/support/users/ra1dz/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/get_comments_number-wrong-counting/)