Comment count doesn’t seem to be correct

8.35K viewsIssuesbug
0

Hi Rahul,

I followed the WordPress Codex for number of comments per question as below

https://codex.wordpress.org/Function_Reference/comments_number

However, this doesn’t seem to report the correct number. For example, I have over 15 comments on a particular question, but the codex function returns only two ?

Doesn’t seem to matter if this is inside the loop or out.

Any thoughts ?

1

Here’s some examples. These are the actual questions, which have comments

And these are the answers, which have comments

What I’m looking for is a function that will combine the comments from both the actual question, plus the answers to the question, then provide the overall total 🙂

You are viewing 1 out of 5 answers, click here to view all answers.