Comment count doesn’t seem to be correct

7.32K viewsIssuesbug

Hi Rahul,

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

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 ?


Hello Mark,

If i am not wrong then you are trying to sum comment counts of question and answers. That is not a default behavior but this can be achieved.

Let me think adding this feature will be helpful or not.


commented on answer

Personally, I think it’s a good idea. The higher the comments and views etc, the higher the engagement. It’s something I think should be core

Yeh, I agree.

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