The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Comment count incorrect
How-to and Troubleshooting
(@knhsb)
Active Member
Joined: 5 years ago
Hi, on https://www.duurzaamthuis.nl/huishouden/schoonmaken the comment count is 6, but there are only 2 comments visible in front end. This aligns with the backend, there are supposed to be only 2 comments on that page.
I've also seen examples where the count says 2, but there are 0 comments visible (both front end back end).
Is there a way to trigger recount or some other known issues around this?
This topic was modified 5 years ago by
knhsb
(@asti)
Illustrious Member
Joined: 8 years ago
@knhsb,
Try to delete all kind of caches and check again.
(@knhsb)
Joined: 5 years ago
Active Member
Posts: 7
Mar 11, 2021 11:06 am
@asti thanks, tried but doesnt help. I've tried it on my test environment with all plugins deactivated except for wpdisquz, and a standard theme: https://staging.duurzaamthuis.nl/huishouden/schoonmaken. Still the same result. Any ideas?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8192
Mar 12, 2021 12:47 pm
@knhsb,
wpDiscuz uses WordPress native (core) get_comments_number() function for this. Probably the wrong number is being saved in the database.
(@knhsb)
Joined: 5 years ago
Active Member
Posts: 7
Mar 15, 2021 9:49 am
@asti @Thanks, it's indeed a database issue, unrelated to wpdiscuz. Probably after importing the website. Found a few tutorials on fixing it like this one https://www.wpbeginner.com/wp-tutorials/how-to-fix-category-and-comment-count-after-wordpress-import/.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8192
Mar 15, 2021 9:51 am
Thank you for letting us know. Glad to hear the issue is solved.