Support » Fixing WordPress » Using same category slug within different categories

  • 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 3 months, 1 week ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
    • This topic was modified 3 months, 1 week ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.