wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] Comment count above bubble remains the same on all pages  


wiwimaster
Posts: 12
(@wiwimaster)
Active Member
Joined: 5 months ago

Hi,

on all our pages we have the comment count of 8, regardless of whether there are actually 0 or 200 commens on a page. An example can be found here: https://www.backenmachtgluecklich.de/rezepte/protein-waffeln.html

How can I enable those counts to be in-sync with the actual comment count?

thanks a lot

Jan

 

 

Topic Tags
11 Replies
Asti
Posts: 1611
 Asti
Support
(@asti)
Support member
Joined: 3 years ago

Hi@wiwimaster,

This could be a cache issue. Please delete your website caches and press CTRL+F5 (twice) on the frontend. 

4 Replies
wiwimaster
(@wiwimaster)
Joined: 5 months ago

Active Member
Posts: 12

Hi @asti 

I cleaned all WP Rocket caches & Cloudflare caches and reloaded the page with a complete reload. However, the count "8" remains on all pages the same. 

 

What else could this cause?

thanks

Jan

Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1611

@wiwimaster,

We'll need to admin login details again. Could you please send it again?

wiwimaster
(@wiwimaster)
Joined: 5 months ago

Active Member
Posts: 12

@asti Yes - I've sent them to you.

thanks for looking into this

Jan

Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1611

@wiwimaster,

We'll check and back to you asap. 

Asti
Posts: 1611
 Asti
Support
(@asti)
Support member
Joined: 3 years ago

@wiwimaster,

Please open a plugin editing feature, to allow the developers to check the issue. 

More info in this article: https://www.ionos.com/community/websites-ecommerce/wordpress/activate-wordpress-theme-and-plug-in-editor/

5 Replies
wiwimaster
(@wiwimaster)
Joined: 5 months ago

Active Member
Posts: 12

@asti Thanks. I've enabled the plugin editor, you can go ahead.

Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1611

@wiwimaster,

The issue comes from the "BMG zuletzt aktualisiere Beiträge" widget you're using. It messes the post id, thus it always displayed the same comment count.

wpDiscuz uses the WordPress native (core) get_comments_number() function and as far as the widget changes the post object it messes the $post_id parameter in the function. Please contact the widget developers and let them know about the issue. They'll better know how to fix the issue.    

More info about the function you can find here: https://developer.wordpress.org/reference/functions/get_comments_number/

wiwimaster
(@wiwimaster)
Joined: 5 months ago

Active Member
Posts: 12

@asti

 

thanks, that's interesting to see. I'll reach out to them, thanks a lot for investing the time to dig up that issue.

Best

Jan

wiwimaster
(@wiwimaster)
Joined: 5 months ago

Active Member
Posts: 12

@asti quick update on this topic - adding a simple wp_reset_postdata(); at the end of the interfering widget solved this problem, and the comment count is now displayed properly.

 

thanks again for the world-class support!!

Best

Jan

 
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1611

Thank you @wiwimaster,

We really appreciate you, taking time and share the information.

Share: