Subcategory permalink keeps adding parent category twice? (3 posts)

  1. aspen
    Posted 6 years ago #

    When I add a subcategory, instead of the url being, .../parent-category/subcategory it keeps creating this:
    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?

  2. Tijmen Smit
    Posted 5 years ago #

    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.

  3. micharo
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic