{"id":112935,"date":"2019-11-15T10:59:07","date_gmt":"2019-11-15T10:59:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/update-comment-count\/"},"modified":"2026-07-29T09:00:55","modified_gmt":"2026-07-29T09:00:55","slug":"update-comment-count","status":"publish","type":"plugin","link":"https:\/\/id.wordpress.org\/plugins\/update-comment-count\/","author":16550547,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0","stable_tag":"trunk","tested":"7.0.2","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Update Comment Count","header_author":"Dinesh Pilani","header_description":"After exporting and importing your comments from one website to another use this plugin to update your comment count","assets_banners_color":"2c66b3","last_updated":"2026-07-29 09:00:55","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/www.linkedin.com\/in\/dineshpilani\/","rating":5,"author_block_rating":0,"active_installs":40,"downloads":2663,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.0":"<p>Improved admin UI, performance, and compatibility with the latest WordPress and PHP versions. No action needed after updating.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":5},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3626946,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3626946,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3626946,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3626946,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3626946,"resolution":"1","location":"assets","locale":"","width":1920,"height":2237}},"screenshots":{"1":"The Update Comment Count admin page showing the total comment count and the recalculate button."}},"plugin_section":[],"plugin_tags":[3806,107,181032,4155],"plugin_category":[44,59],"plugin_contributors":[273676],"plugin_business_model":[],"class_list":["post-112935","plugin","type-plugin","status-publish","hentry","plugin_tags-comment-count","plugin_tags-comments","plugin_tags-import-export","plugin_tags-migration","plugin_category-discussion-and-community","plugin_category-utilities-and-tools","plugin_contributors-dineshpilani05","plugin_committers-dineshpilani05"],"banners":{"banner":"https:\/\/ps.w.org\/update-comment-count\/assets\/banner-772x250.png?rev=3626946","banner_2x":"https:\/\/ps.w.org\/update-comment-count\/assets\/banner-1544x500.png?rev=3626946","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/update-comment-count\/assets\/icon-128x128.png?rev=3626946","icon_2x":"https:\/\/ps.w.org\/update-comment-count\/assets\/icon-256x256.png?rev=3626946","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/update-comment-count\/assets\/screenshot-1.png?rev=3626946","caption":"The Update Comment Count admin page showing the total comment count and the recalculate button."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Recalculates the total comment count across your entire site<\/li>\n<li>Updates the stored comment count for every post to match the actual number of comments<\/li>\n<li>One-click operation from a dedicated admin page<\/li>\n<li>No configuration needed<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>update-comment-count<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory, or install directly through the <strong>Plugins &gt; Add New<\/strong> screen in your WordPress admin.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Go to <strong>Update Comment Count<\/strong> in the admin menu and click the button to recalculate your comment counts.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20this%20affect%20my%20existing%20comments%3F\"><h3>Will this affect my existing comments?<\/h3><\/dt>\n<dd><p>No. This plugin only recalculates and updates the <code>comment_count<\/code> value stored against each post. It does not add, remove, or modify any comments themselves.<\/p><\/dd>\n<dt id=\"when%20should%20i%20use%20this%3F\"><h3>When should I use this?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"is%20it%20safe%20to%20run%20more%20than%20once%3F\"><h3>Is it safe to run more than once?<\/h3><\/dt>\n<dd><p>Yes. It simply recalculates counts from your current comments table each time you click the button, so running it again causes no harm.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0<\/h4>\n\n<ul>\n<li>Redesigned the admin page with a clearer stats display and success confirmation message<\/li>\n<li>Replaced an inefficient query with a faster comment count lookup<\/li>\n<li>Added a capability check for defense-in-depth on the admin action<\/li>\n<li>Added GPL license declaration and text domain for translation support<\/li>\n<li>Updated compatibility for WordPress 7.0 and PHP 8.3<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"Recalculate and update your site&#039;s comment counts in one click after moving or importing comments.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/112935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=112935"}],"author":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dineshpilani05"}],"wp:attachment":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=112935"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=112935"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=112935"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=112935"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=112935"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=112935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}