Update Comments Count

Plugin Banner

Update Comments Count

by Pau Iglesias

Download
Description

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.

  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
  1. Updating posts comments counter via AJAX

    Updating posts comments counter via AJAX

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.

Still works

By Silkalns (silkalns) on September 2, 2022

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.

Did the trick

By titsmaker on October 25, 2019

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.

Worked perfectly

By Ross Wintle (magicroundabout) on May 10, 2019

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!

Didn't Do what I hoped

By willywdev on October 3, 2018

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.

worked

By Kingsley Felix (iamkingsleyf) on September 23, 2018

It worked even though it has not been updated for long

Still Works!!!

By nickpagz (npagazani) on July 20, 2018

After an import from wordpress.com the comment counts were way off. This worked perfectly. Thanks! WordPress version 4.9.7 and PHP 7.

Worked awesome

By erikjandelange on July 10, 2018

Just inserted the comments through the database, and executed this plugin. All the counts were updated correctly. Thanks, great plugin!

Doesn't Work

By anefarious1 on October 29, 2017

I was hoping this would work but it doesn't. Didn't crash my website or anything like that, but it does not correct comment counts for me.

Works perfect

By Warren (rabbitwordpress) on March 23, 2017

I was skeptical as this plugin hadn't been updated for 2 years. I had imported a WordPress.com blog into a self hosted WordPress.org but the comment count title above the comments was displaying "O thoughts on..." even though all the comments were visible. However I managed to complete the task to recount comments in under 1 minute. By simply installing and activating the plugin, going to "Tools", selecting "Update Comments Count" then "Start Process". It really was that simple! Great work and kudos to the the developer. 🙂

1.0

Release Date: April 23th, 2015

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