WordPress.org

Ready to get started?Download WordPress

Forums

Post Count Refresh (4 posts)

  1. hexified
    Member
    Posted 8 years ago #

    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?

  2. petit
    Member
    Posted 8 years ago #

    This is a very loos shot ( I should be ashamed ).
    Would a sloution be t delete your cache ?

  3. YellowSwordfish
    Member
    Posted 8 years ago #

    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.

  4. hexified
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.