Support » Fixing WordPress » Changing Category ID numbers

  • In the admin (or other) area, is there a way to go back and change the ID numbers given to the Categories?

    Ie, if I originally created 10 categories, and decided to prune that down to 5, but I left behind numbers 1, 2, 6, 8 and 10. Can I go back and renumber those so I only have numbers 1-5?

    Let me know if I need to clarify better. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • it doesn’t hurt anything to leave it that way. plus, if you have links floating around the net to those categories, they will no longer direct to the same categories….

    If you must edit them, you can do it by editing your SQL database directly with whatevr tools your host gives you to do so (phpmyadmin)…

    Okay, so… If I already have posts under the current numbers, then, would I wind up with problems if I change them?

    Say… I have 3 posts under hobbies’ which is numer 15… but, I change it to number 6… I’d lose the link?

    well, the links directly to the posts would work, they may not show the correct category names though, as the posts are linked to the categories through these numbers.

    The links directly to a particular category will not link to that category anymore unless you are using permalinks and your rebuild your htaccess file, IIRC.

    Hmm… yeah, I’m using permalinks.

    That all sounds like that will get a bit complex. I can just leave them as is. I was just thinking about it because I’m kind of anal and when I look at all the ‘random’ numbers, I have an urge to FIX them. 🙂

    Thanks for the info, though!

    I wrote quite a lot on category numbers in this thread. Might be quite interesting even if you don’t go through with it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing Category ID numbers’ is closed to new replies.