Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    WordPress won’t allow slugs to be reused. You’d need product-apple-2, or you can prepend the first category to the slug.

    WHAAAAAAAAA!??? No duplicate slugs? Truly, I couldn’t believe this, I searched and searched and discover, indeed such a simple, normal, ordinary url structure is banned in WordPress/Woocommerce. Bug? More like deeply flawed.
    I’ve tried every plugin I thought could fix it. The mysterious “Duplicate category paths” plugin doesn’t exist. Nothing works.
    I’ve had to work around by using file names to indicate path structures.
    Instead of:

    • mysite.com/mens/trousers – a normal cateogory
    • mysite.com/mens/trousers/denim – a nested product page
    • mysite.com/womens/trousers-1/denim-1 – a nested product page with allowed slugs

    I’m going for:

    • mysite.com/mens-trousers – a page, made to look like a cateogory
    • mysite.com/mens-trousers-denim – a product page
    • mysite.com/womens-trousers-denim – a product page

    Categories seem useless. I’ll use tags and use this
    [woo_products_by_tags tags=”denim”].
    Probably, all of my products will thus be at one level. But at least my urls will be friendly.
    Madness.
    Be happy for ever,
    Steve

    • This reply was modified 8 years, 3 months ago by stevehoo. Reason: typo
    • This reply was modified 8 years, 3 months ago by stevehoo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate Slugs for Categories’ is closed to new replies.