Comment count doesn’t seem to be correct

8.15K 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 ?

2

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.

Thanks

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.