• Resolved searchconversion

    (@searchconversion)


    I have used CPT UI to recreate a custom taxonomy on the product post-type of WooCommerce for Product Types. (It was originally created in code years ago and named product_format.)

    The store’s base permalinks are set to /store/. My archive pages are working fine if I set the custom tax slug to /product-type/ or /product-format/ – but if I set the slug to /store/format/ or /store/type/, we get only a 404.

    I have tried removing the taxonomy from CPT UI and writing it in code and got the same problem – so I figure it isn’t a CPT UI problem, but thought you might know where I should look to solve it.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not really, rewrite rules/permalink customizations are not my strongest suit so I’d always end up being a googler/tinkerer myself.

    From what I’ve seen though, the rewrite slug spots that are in CPTUI and thus register_post_type() are meant to provide a custom slug just for the post type/taxonomy itself, not provide extra parts to try and get the URLs to match the structure desired. it’d cover the “type” in /store/type/, but trying to have it cover “store/type” would throw issues.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomy slug on WooCommerce Products’ is closed to new replies.