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″

14 responses to “Can’t edit category slug ?”

  1. happy

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

  2. naziman

    thanks a lot.. my stupid problem solved!

  3. Wing

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

  4. thinkwerid

    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.

  5. Change Category Names under Wordpress | Thinkweird's Blog

    [...] Or better, instead of changing the slug or category, deleting the conflicting tags seems to be a better solution: [...]

  6. DiggLife

    It works!!Thanks a lot!

  7. DiggLife

    Wordpress无法编辑分类缩略名(Slug)的解决…

    今天在获得Google管理员工具的抓取错误信息之后想整理一下分类和标签,发现当修改分类缩略名(Slug)的时候Wordpress始终提示"分类未更新",亦然保持原有的缩略名.用Google搜索了一圈之后没…

  8. sawa

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

  9. 夏娃

    It works
    thanks a lot :D

  10. imknight

    welcome , glad that it help ^^

  11. raiciego

    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)

Leave a Reply


On this day...

  • 2008: Do you envy good speaker ? — Yes i do , this mainly because i can’t  speak well. Just now there is a town hall at my [...]
  • 2008: Improve your customer service please. — I bought the macheist bundle during Jan, but until March then i getting my iMac with leopard and until May [...]
  • 2007: Interview — So far all together i have 3 interview already. First one is a famous international company,  they are famous by their [...]
  • 2006: Ping.SG Live ! — Uzyn is one of the singapore blogger which i subscribe in my bloglines, other then him and his darling sek [...]
  • 2004: Back Home — Fri day nite i was actually playng FF online since 8pm .. until 1++am its been long time since the last [...]