how to update comment count and category count (SQL geek wanted)
-
Hi, I did upgrade to wordpress but i have zeros at comment count and category count, so wordpress do not show me Comments (n) and category list on index. How can I update the counts.
I tried e.g.
UPDATE marigold_posts SET comment_count = (SELECT COUNT(comment_post_id) FROM marigold_comments WHERE marigold_posts.id = marigold_comments.comment_post_id)”;it is working for an hour but nothing happen, seems i messed something. Please can you help me to repair the SQL?
Or is there any script which would rebuild those 2 counts?
thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘how to update comment count and category count (SQL geek wanted)’ is closed to new replies.