Comment count doesn’t seem to be correct

8.26K 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

Ok, I see the disconnect. This is definitely a bug.

The WordPress codex will only show comments for the actual post itself – not the answers. In this case, there are two comments on the original question, so that would be correct. However, what I want is the cumulative total for all comments on all answers, plus the comments to the actual question

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