Support » Fixing WordPress » Subcategory permalink keeps adding parent category twice?

  • aspen

    (@aspen)


    When I add a subcategory, instead of the url being, …/parent-category/subcategory it keeps creating this:
    …/parent-category/subcategory-parent-category
    which becomes a long url and redundant.

    An example would be …./dog-leashes/pink-dog-leases-dog-leashes
    I want it to be …/dog-leashes/pink-dog-leashes

    No matter what I put in the category slug, it keeps adding the parent category onto the end. How do I fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem, I did find that if you change it to something that doesn’t make sense like aaaaaaa, or bbbbb it does work properly. But then when you try to change it into something that makes sense, like the name of the subcategory itself. You get the name of the parent-category in the slug as well.

    The problem is when you have child categories with the same name but under different parent category. WordPress automatically adds the parent slug to the child slug.

    Does anyone know a work around this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subcategory permalink keeps adding parent category twice?’ is closed to new replies.