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.