Update Comment Count
Update Comment Count
Description
When you export and import comments from one WordPress site to another, the comment counts stored against each post can end up out of sync with the actual comments in the database. Update Comment Count fixes this in a single click from your WordPress admin dashboard, without needing direct database access.
Features
- Recalculates the total comment count across your entire site
- Updates the stored comment count for every post to match the actual number of comments
- One-click operation from a dedicated admin page
- No configuration needed
Installation
- Upload the
update-comment-countfolder to the/wp-content/plugins/directory, or install directly through the Plugins > Add New screen in your WordPress admin. - Activate the plugin through the Plugins menu in WordPress.
- Go to Update Comment Count in the admin menu and click the button to recalculate your comment counts.
Screenshots
Faq
No. This plugin only recalculates and updates the comment_count value stored against each post. It does not add, remove, or modify any comments themselves.
Typically after migrating a site, restoring a backup, or importing comments from another WordPress installation, where post comment counts no longer match the actual comments in your database.
Yes. It simply recalculates counts from your current comments table each time you click the button, so running it again causes no harm.
Reviews
Worked perfectly
By magicoders (patopaiar) on December 6, 2021
Simple, worked great for me.
By 951j335 on August 17, 2021
Beautiful...!
By leanderbraunschweig on October 29, 2020
Worked perfectly!
By Nathan Holmes (pumprnickelbred) on August 12, 2020
Works exactly as advertised.
By Marius (kodeks) on March 8, 2020
Changelog
2.0
- Redesigned the admin page with a clearer stats display and success confirmation message
- Replaced an inefficient query with a faster comment count lookup
- Added a capability check for defense-in-depth on the admin action
- Added GPL license declaration and text domain for translation support
- Updated compatibility for WordPress 7.0 and PHP 8.3
1.3
- Initial public release
