The easy way is to just write PHP to go through all the posts and call wp_update_comment_count()
on each post ID.
Related Posts:
- What do these phpMyAdmin errors mean on my WordPress databaes?
- How to make comments work for a post loaded per Ajax?
- Allow variable amount of comments before pagination
- MySQL Query to Retrieve Category from wp_posts
- SQL Query for getting all posts in their latest revised state
- get comments and get posts in loop
- Search & Remove Specific Shortcode From All Posts
- Manually delete post from database
- modify all posts of a category to “no comments allowed”
- How to display comments and comment form on custom post type?
- Comments are assigned to wrong or related post
- How can I allow editors to leave comments on posts that have not yet been published?
- Update post date on every new comment?
- How to force update all posts after import
- One comment per user email per post
- Can’t show comments count per post outside loop
- Only display posts with comments
- Comments enabled, but disabled at the same time
- Comments not showing in custom post type – WordPress
- How to output comments number of a post per day?
- Enable commenting on front-end preview page for pending posts
- Hide comments awaiting moderation from user who submitted the comments
- Query All users that has post
- Can’t publish new posts
- Hide Post comments when displayed via WP_Query
- Including new Javascript only after a comment is made
- Disable Post/Page comment emails for creators
- Display posts with comments closed, with pagination?
- Why is WordPress redirecting users to random posts after commenting?
- How to get most recent commented post above new submitted post in WordPress?
- Manually removing revision post types
- Reset/Reorder posts ID in the MySQL wp_posts table
- When trashing a post, also trash related comments
- how to find user ids of all commenters in a post
- Diplay comment date on WP_Post_Comments_List_Table
- How do I find which articles are missing a featured image in The WordPress database?
- Posts vs. Pages
- Tags to Post-ID mysql query. Tag Search
- count the total number of comments the user has received for his published posts
- How to Orderby Comments by post title?
- If modified on same day, show only time
- How to allow logged in users to post anonymously
- Email entire post contents
- wp_insert_post – duration
- Query get post,how to add comment box
- Update all comments time to random dates?
- Enable Comments Box On Custom Post Type
- Turn On Comments On Custom Post Types in Directory Theme
- Get user categories with most posts in it
- Emojis replaced by ‘?’ automatically
- MySql query to get posts with all meta and terms
- Move comments only from one WP installation to another
- Second comments section for one post/page
- A friend wants to make a comment on one of my articles, she has to be logged to wordpress?
- Get all images in post and comments like Twitter before post title
- Is it possible to paste a link without tags and make it directly a link in a post?
- Showing author page if user has no post
- Customizing Comments on Posts
- Custom order for Mysql array
- List authors with the last post title and order by last post date
- WordPress Comment posting problem
- What do comments with […] mean?
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Remove a shortcode from all WordPress posts
- Order posts alphabetically: how to set order=asc in mysql query?
- Internal post link creates comments on its own
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- How to get posts and comments amount per hour, per year and per month?
- Show comment number per author per day
- Get all comments of author’s posts
- Delete post results in “Cannot delete or update a parent row: a foreign key constraint fails”
- SQL Command for restoring trashed comments
- Howto show comment count by post in post?
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- Hide comments and posts posted by other user
- Let both the admin and post author update comment meta
- update image path with words starting uppercase to lowercase chars
- How to style archive post titles… but only those posts who have comments?
- Queries take 120+ seconds on my large WordPress site
- Database hacked – random posts are modified
- Need to change all links in page content but not in post content
- Can’t update WordPress Page if post_content is Empty
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Restore woocommerce orders
- How does WP decide how to display a page
- How to select particular month post from table and update the post status using MySQL?
- How do post IDs work in WordPress?
- Display on page every post in blog WITH comments
- Get author posts count after excluding a category
- Showing recent post of category in page
- Can WordPress handle following functionalities?
- If post exists, make it a comment in existing post with same name?
- get last post’s link with SQL query
- How to get post id of last approved comment?
- query for filtering published posts?
- How to implement a WordPress comments function?
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Deleting post tags removes categories
- Return records between two meta datetimes saved as strings