Title: Update Comment Count
Author: Dinesh Pilani
Published: <strong>15 ພະຈິກ 2019</strong>
Last modified: 29 ກໍລະກົດ 2026

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/update-comment-count/assets/banner-772x250.png?rev=3626946)

![](https://ps.w.org/update-comment-count/assets/icon-256x256.png?rev=3626946)

# Update Comment Count

 ໂດຍ [Dinesh Pilani](https://profiles.wordpress.org/dineshpilani05/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/update-comment-count.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/update-comment-count/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/update-comment-count/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/update-comment-count/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/update-comment-count/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/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

## ພາບໜ້າຈໍ

[⌊The Update Comment Count admin page showing the total comment count and the recalculate
button.⌉⌊The Update Comment Count admin page showing the total comment count and
the recalculate button.⌉[

The Update Comment Count admin page showing the total comment count and the recalculate
button.

## ການຕິດຕັ້ງ

 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.

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/984e7b48b19f0004d662296573addf210c61f1062451b6b77f149e6e58756eeb?
s=60&d=retro&r=g)

### 󠀁[Worked perfectly](https://wordpress.org/support/topic/worked-perfectly-293/)󠁿

 [magicoders](https://profiles.wordpress.org/patopaiar/) 6 ທັນວາ 2021

Thank you so much for a free solution that just works like a charm.

![](https://secure.gravatar.com/avatar/9680be15a26d7a95f40b8e17634a94755eee4aa1705682d064c31a8960a782f6?
s=60&d=retro&r=g)

### 󠀁[Simple, worked great for me.](https://wordpress.org/support/topic/simple-worked-great-for-me/)󠁿

 [951j335](https://profiles.wordpress.org/951j335/) 17 ສິງຫາ 2021

Thanks, this plugin fixed my comment count after importing content to our staging
site.

![](https://secure.gravatar.com/avatar/8b64651ced85ad5341dbb878dd928a8ec0ae54bd25e43f6c869f1872a86cb8c8?
s=60&d=retro&r=g)

### 󠀁[Beautiful…!](https://wordpress.org/support/topic/beautiful-317/)󠁿

 [leanderbraunschweig](https://profiles.wordpress.org/leanderbraunschweig/) 29 ຕຸລາ
2020

Great plugin, does exactly what it advertises and very well so. Thanks for providing
this utility, much appreciated!!

![](https://secure.gravatar.com/avatar/01ad0fbc75d62c87d3193a98c29a8a53130a0139fb6105bc211365246caafcb6?
s=60&d=retro&r=g)

### 󠀁[Worked perfectly!](https://wordpress.org/support/topic/worked-perfectly-259/)󠁿

 [Nathan Holmes](https://profiles.wordpress.org/pumprnickelbred/) 12 ສິງຫາ 2020

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!

![](https://secure.gravatar.com/avatar/8e591a3d3a37718400b90f863f0051bfd37f21f841fe4e68cebdf986072f0d59?
s=60&d=retro&r=g)

### 󠀁[Works exactly as advertised.](https://wordpress.org/support/topic/works-exactly-as-advertised-31/)󠁿

 [Marius](https://profiles.wordpress.org/kodeks/) 8 ມີນາ 2020

Updated to the correct review count with a click of a button. Exactly what I needed.
Thanks 🙂

 [ ອ່ານການຣີວິວທັງໝົດ 5 ລາຍການ ](https://wordpress.org/support/plugin/update-comment-count/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Update Comment Count” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Dinesh Pilani ](https://profiles.wordpress.org/dineshpilani05/)

[ແປ “Update Comment Count” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/update-comment-count)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/update-comment-count/), 
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/update-comment-count/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/update-comment-count/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/update-comment-count/?limit=100&mode=stop_on_copy&format=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

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **2.0**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **4 ອາທິດ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **40+**
 *  ເວີຊັນ WordPress ** 6.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **7.0.4**
 *  ເວີຊັນ PHP ** 7.4 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/update-comment-count/)
 * ແທັກ
 * [comment count](https://lo.wordpress.org/plugins/tags/comment-count/)[comments](https://lo.wordpress.org/plugins/tags/comments/)
   [import-export](https://lo.wordpress.org/plugins/tags/import-export/)[migration](https://lo.wordpress.org/plugins/tags/migration/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/update-comment-count/advanced/)

## ການໃຫ້ຄະແນນ

 5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 5 ລາຍການ     ](https://wordpress.org/support/plugin/update-comment-count/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/update-comment-count/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/update-comment-count/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/update-comment-count/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/update-comment-count/reviews/?filter=1)

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/update-comment-count/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/update-comment-count/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Dinesh Pilani ](https://profiles.wordpress.org/dineshpilani05/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/update-comment-count/)