Answer the question
In order to leave comments, you need to log in
How to fix SQL query in WordPress database
Good evening,
I'm not savvy in sql, but you need to execute such a query:
UPDATE wc_term_taxonomy SET count = (SELECT COUNT(*) FROM wc_term_relationships, wc_posts WHERE
wc_posts.ID = wc_term_relationships.object_id AND post_status =
'publish' AND post_type = 'lyrics' AND term_taxonomy_id = '1229');
Answer the question
In order to leave comments, you need to log in
... AND post_type = 'lyrics' AND wc_term_taxonomy.term_taxonomy_id = wc_term_relationships.term_taxonomy_id);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question