Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Category Slug – inconsistent name creation

Discussion in 'Misc WordPress Requests' started by lownotes, Nov 22, 2017.

  1. lownotes

    Guest

    Category Slug – inconsistent name creation, by lownotes

    Hi there, I started noticing some strange behavior with the generation of category slugs. I can repeat the issue consistently. Perhaps I’m doing something wrong.

    I’m dealing with a heirarchical category relationship and trying to edit the slugs and noticed inconsistent results, every save.

    Parent-child-child2

    Property Types
    -LEED
    – -County

    If I edit the slug of child 2 category name = “County” using the category editor. Delete the slug and save so an auto generated slug is created I get result #1 for slug, if I edit the same category again, delete slug and save I get result #2 for slug.

    #1 edit of category “County”
    Parent = property types
    child = leed
    child2 = county-leed-property-types (auto generated slug pulls both parent and grandparent names into the slug)

    #2 edit of category
    Parent = property types
    child = leed
    child2 = county-leed (auto generated slug pulls only parent)

    #3 edit of category
    Parent = property types
    child = leed
    child2 = county-leed-property-types (auto generated slug)

    #4 edit of category
    Parent = property types
    child = leed
    child2 = county-leed (auto generated slug)

    The results repeat this way, each time saving the alternate slug.

    Category Slug – inconsistent name creation
     
    #1

Share This Page

Web Hosting