WordPress.org

Ready to get started?Download WordPress

Forums

Override auotmatic Category Slug creation (6 posts)

  1. nublooo
    Member
    Posted 5 years ago #

    Hi,
    Why does WordPress (2.6.1) automatically add the parent category name to a sub category slug? Unless I'm missing something, and I looked everywhere, it does this automatically upon creating new sub categories. Editing them won't help either, I'm not able to change them either - it doesn't give me an error but just closes the edit page quitely, and it always adds the parent to whatever I write again.

    Example:
    Parent Category "Shoes"
    |
    Child Category "Running Shoes"
    |
    Child Category "Sandals"

    Permalink for Running Shoes is
    mysite.com/shoes/running-shoes-shoes/postname

    Permalink for Sandals is
    mysite.com/shoes/sandals-shoes/postname

    This is a bit annoying, and I'd appreciate any help on this one :)

  2. MattSimpson
    Member
    Posted 5 years ago #

    Same problem here - very annoying

  3. blankpoint
    Member
    Posted 5 years ago #

    I'm having the same problem, and there are several forum posts that indicate other people have the problem, with no offered solution. Anyone? It was working fine for me and suddenly started doing this in 2.7.1.

  4. solecist
    Member
    Posted 5 years ago #

    did it just start in 2.7.1, I just rearranged my categories from linear to nested and only had it start when I nested them....

  5. eworque
    Member
    Posted 5 years ago #

    same problem and I still can't find the solution anywhere. Anybody?

  6. eworque
    Member
    Posted 5 years ago #

    Found the solution:

    1. Check myPHPadmin
    2. Look for wp_terms table
    3. Delete the categories you don't use anymore or just delete everything in that table.
    4. Edit your categories in the WP-admin.

    I wrote about this in my blog: http://ridhuan.co.cc/blog/2009/04/editing-and-organizing-wordpress-category-slugs/

Topic Closed

This topic has been closed to new replies.

About this Topic