這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Update Comments Count

描述

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

安裝

  1. Unzip and upload update-comments-count folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. 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.

評價

2022年9月2日
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.
2019年10月25日
The plugin helped me fixing the issue with wrong comment numbers after manipulating comments via PHPMyAdmin. Still working with WP 5.2.4 and PHP 7.3.
2019年5月10日
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!
2018年10月3日
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.
2018年7月20日
After an import from wordpress.com the comment counts were way off. This worked perfectly. Thanks! WordPress version 4.9.7 and PHP 7.
閱讀全部10個評價

貢獻者及開發者

“Update Comments Count” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Update Comments Count 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

Release Date: April 23th, 2015

  • First and tested released until WordPress 4.2
  • Tested code from WordPress 3.3.2 version.