Comment count doesn’t seem to be correct
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 ?
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
Rahul Aryan commented on answer
Rahul Aryan commented
Yeh, I agree.
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