This plugin provides a simple method to update the comment counters stored in each post.
Works with multiple AJAX calls and processes packs of 50 posts by default.
For each entry, the comments counter is updated calling the WordPress function wp_update_comment_count_now.
Allows support for existing custom post types, and gives some plugin filters to change core configuration.
屏幕截图
Updating posts comments counter via AJAX
安装
Unzip and upload update-comments-count folder to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress
Go to menu Tools > Update Comments Count to start the updating process
常见问题
Why do I need to update the posts comments counter?
Sometimes, when interacting with another plugins that deal with comments, the commments counter originally computed by WordPress can be wrong. This plugin solves this problem using massively the standar WordPress way.
As of the time of writing, this plugin hasn’t been updated for over 7 years. However, it still works using PHP 7.4 and WordPress 6.0.2.
This plugin fixes an annoying thing that misleads users, so I highly recommend giving it a try even today.
Worked perfectly.
Would be good to get the “Tested up to” tag updated so you can appear more prominently in search results in the repo.
But thanks for making this – saved me a ton of time!
I don’t know what its supposed to do, but it didnt do what I wanted. I made changes to wp_posts comment_count but the numbers aren’t showing on the site. I hoped this would force the site to update the count I changed from the backend Mysql, no go.