• I need something like this category structure:

    Cars / Reviews
    Boats / Reviews

    While the category slugs should be exactly like:

    /cars/reviews/
    /boats/reviews/

    Any way how I could achieve this?

    Whenever I try to use the same slug for a subcategory wordpress appends the parent category to the slug like reviews-cars or reviews-boats whenever ANY OTHER CATEGORY is present with the slug reviews.

    This is driving me nuts. Any way / workaround / hack / fix to be able to use the same slug for subcategories even if there are other subcategories with the same name/slug within another parent category?

    Imho the parent category should be enough to separate the slugs

    • This topic was modified 2 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
    • This topic was modified 2 years, 6 months ago by Jan Dembowski.
Viewing 7 replies - 1 through 7 (of 7 total)
  • By default, WordPress uses post URLs which have the date and name in them. However, WordPress offers you the ability to create a custom URL structure for your permalinks.

    In the My Site → Settings → Permalinks screen, you can choose one of the more common permalink structures or enter your own in the “Custom structure” field.

    Thread Starter just0nequestion

    (@just0nequestion)

    I know and I’ve setup %category%postname% but this doesn’t solve my problem

    Thread Starter just0nequestion

    (@just0nequestion)

    Still unsolved :/ How can I achieve my goal?

    What I did was to create a custom taxonomy called subcategory and a custom permalink structure category/subcategory/postname. You can use plugins to achieve that like CPT UI and Permalink Manager.

    osmarzaozao

    (@osmarzaozao)

    I have the same problem…

    I am also interested to know if something like this can be done:

    domain.com/food

    domain.com/cats/food

    domain.com/dogs/food

    Same trouble for me,)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Using same category slug within different categories’ is closed to new replies.