S
S
samokrutov2016-02-07 17:48:06
WordPress
samokrutov, 2016-02-07 17:48:06

How to reset the comment counter in WP?

Hi friends! Maybe someone has experienced this and knows the solution.
Transferred the site with a duplicator from one hosting to another: all files, database, etc. Accordingly, all comments were transferred. Because there were a lot of them and it was not possible to delete them through the admin panel - the server gave an error, I cleared the comment table in the MySQL database itself. And the counters of the posts, unfortunately, remained, although there are no comments.
How to reset, "reset" this counter? www.prntscr.com/a05o0m

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim E, 2016-02-07
@creativeworm

The posts table has a column " comment_count "
Set to 0 for each post.

S
samokrutov, 2016-02-08
@samokrutov

For some reason it doesn't work. Field cleared - prntscr.com/a0j0sm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question