• Forgive me if this is an extreme newbie question, but is there any way to “reorder” categories after creating them– to change their ID numbers?

    I ran across this problem because I imported all my old categories from MT. I want a specific category order, but it’s not the current ID order.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I guess the only way would be through phpMyadmin

    Thread Starter patrickc

    (@patrickc)

    Which php file would it be that i’m modifying? I was looking for it earlier, with no luck.

    There is no file to modify. All your data – including category IDs – are stored in your database. phpMyadmin is the interface to access your database. Doesn’t your host offer it?

    Category info is kept in the wp_category table in your database. If you have existing posts in those categories, you’ll also need to correct this in the wp_post2cat table.

    There’s a lot of (potentially blog-breaking) work involved in this, so it’s not a recommended method. However, if you decide to go ahead then back up your database first, just to protect yourself.

    Thread Starter patrickc

    (@patrickc)

    Ack, I found it. I’d never used it before; it was a bit scary 😛

    Thanks

    WPChina

    (@wordpresschina)

    Hmmm… I have about 1750 blog posts already sctattered over 10 categories. I need to add an another one and then have my categories re-ordered.

    I made the simple change in wp_category using phpmyadmin, but then when I get to wp_post2cat it seems like such a gigantic task…

    This thread was started about 16 months ago, so has there been any new developments or plugins that can help solve the problem of changing category IDs?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Change category ID?’ is closed to new replies.