WordPress.org

Ready to get started?Download WordPress

Forums

Changing Category ID numbers (6 posts)

  1. jberglund
    Member
    Posted 9 years ago #

    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!

  2. philpeeps
    Member
    Posted 9 years ago #

    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)...

  3. jberglund
    Member
    Posted 9 years ago #

    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?

  4. philpeeps
    Member
    Posted 9 years ago #

    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.

  5. jberglund
    Member
    Posted 9 years ago #

    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!

  6. ifelse
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.