Support » Fixing WordPress » Post Count Refresh

  • I just finished deleting over 200 posts from the wp_posts table but when I go back into my blog the old numbers next to the category names remain the same.

    How do I get these numbers to refresh to reflect the REAL number of posts left after deleting a bunch from the database?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is a very loos shot ( I should be ashamed ).
    Would a sloution be t delete your cache ?

    Assuming you mean you went into the database to perform your deletes then my guess is that you also need to delete the associated rows from the post2cat table that stores the relationship between a post and it’s category(s).
    I don’t believe MySQL has great referential integrity otherwise you wouldn’t have been able to delete the posts. The category post count is almost certainly derived from Post2Cat.

    After much effort, the only way I managed to fix the problem was by deleting the categories and then re-creating them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Count Refresh’ is closed to new replies.