Support » Fixing WordPress » Deleting categories

  • Hi I have a question which I can’t seem to fix. I’ve playing with my categories and deleted a few, added a few etc. At the moment I have three categories that I’m satisfied with. My problem is that since I deleted a few categories and everytime I add a new category now it starts with 7 and if I add another it’s numbered 8. But I want the next one to be numbered 4 since I already have 3 categories. Where do I go wrong? Do you guys understand what I mean anyway 😉

    Thanks in advance!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The database requires that each category (and anything for that matter) be identified with a unique number. The ID number is the number created by the database. If you want to change this, you can go into your database (be careful and back it up first – check the for backup instructions) and manually change the ID numbers for your categories.

    Now, it comes with a cost. If you have a bunch of posts, they will now be listed under the original ID numbers and not the new ones, so you will have to go through and change all of those manually.

    There was a brilliant add-on called batch-categories that made this work so much faster and better, changing massive categories at once, but I have been trying to get it to work in the newest WordPress 1.5 and I can’t get it to work. I miss it terribly. If you don’t have many posts, then this is an easy fix.

    The ID numbers only matter when you want to have your list in a specific order, relative to the ID and not alphabetically.

    Thank you for the very fast reply 🙂 It worked thanks I changed the number in the database and it works great now! Lukcily noy many posts where in this category, so I saved them as a draft and changed it around.

    Hopefully you or someone else gets the add-on to work, because it seems like a great fix!

    Thanks again.

    Hi. This worked great for me, too, but now, when I want to add new categories, the new categories take on the later numbers, instead of the lower ones. How do I set it so that when I add new categories, each new category takes on the next number on my existing list of categories?

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