Update Comment Count

外掛說明

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

螢幕擷圖

安裝方式

  1. Upload the update-comment-count folder to the /wp-content/plugins/ directory, or install directly through the Plugins > Add New screen in your WordPress admin.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Update Comment Count in the admin menu and click the button to recalculate your comment counts.

常見問題集

Will this affect my existing comments?

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.

When should I use this?

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.

Is it safe to run more than once?

Yes. It simply recalculates counts from your current comments table each time you click the button, so running it again causes no harm.

使用者評論

2020 年 10 月 29 日
Great plugin, does exactly what it advertises and very well so. Thanks for providing this utility, much appreciated!!
2020 年 8 月 12 日
After doing a large import from another blog, some of my comment counts were showing 0. This plugin worked perfectly and updated all post comments with a click of a button. Thanks so much!
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Update Comment Count〉的開發相關工作。

參與者

將〈Update Comment Count〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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