The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Comment count incor...
 
Share:
Notifications
Clear all

[Solved] Comment count incorrect

6 Posts
2 Users
1 Reactions
2,409 Views
Posts: 7
Topic starter
(@knhsb)
Active Member
Joined: 4 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?

5 Replies
Asti
Posts: 7617
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@knhsb,

Try to delete all kind of caches and check again. 

4 Replies
(@knhsb)
Joined: 4 years ago

Active Member
Posts: 7

@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
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

@knhsb,

wpDiscuz uses WordPress native (core) get_comments_number() function for this. Probably the wrong number is being saved in the database. 

(@knhsb)
Joined: 4 years ago

Active Member
Posts: 7

@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
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

Thank you for letting us know. Glad to hear the issue is solved.

Share: