Can’t edit category slug ?

I was trying to reorganize blog’s category and tag last night, but i keep getting error unable to change category slug , the error message is very general, just mention that it cannot update the category.

I search through wordpress forum and google , it seem like this is not a wordpress bug because there are not many people talking about it, just some user mention it but without any reply, after few hour play around and looking into database & code level, finally i resolve the problem.

This happen after wordpress 2.3 release and introduce tag feature , the database structure has been changed, it combine the links category, post category and tag in one table, because for category slug it need to be unique, when you unable to change means the “word” has been used either by link category or tag.

The simple solutions is use another slug or get any tag management plugin to remove the “word” that you are planning to use as your category slug, i recommend use Simple Tags to handle the tag management.

I just wonder can’t the error message more meaningful ? it just like some stupid system design “This happen because of error xxxx0xxx000”

Share it with your friends, thanks !
Share on FacebookTweet about this on TwitterShare on Google+Share on TumblrBuffer this pagePin on PinterestEmail this to someone

You may also like...

  • happy

    dude – thank you for helping me solve this issue! stupid non updating categories were driving me crazy.

  • thanks a lot.. my stupid problem solved!

  • Knight

    No worry, glad that help

  • The new WP 2.5 still has this problem…
    Thanks a lot it’s a great help! 🙂

  • Good post. I had the same problem and now I realized that one of my tags caused the conflicts.

    I second the idea that the error message should be more informative.

  • Pingback: Change Category Names under Wordpress | Thinkweird's Blog()

  • DiggLife

    It works!!Thanks a lot!

  • Pingback: DiggLife()

  • Knight

    DiggLife,

    welcome, glad that help

  • that’s really help.. really confuse with the tags thingy

  • Thanks for this post. I’m having the same problem..but with the sub categories — when I try to shorten the slug wordpress just keep on another word (my parent category)

    • hi Raiciego, i think same concept apply.

  • If you have well established pages perhaps deep linked with a PR 4 and articles backlinking to that page doesn’t changing the slug change the URL? And now all those backlinks go to a page and you get an error, which you can lose trust with Google?

    Bill