I Would use Customized Publish Kind and hierarchical Taxonomies with similar Slug. Luckily I discovered an excellent resolution primarily based on post_type_link filter right here from TheDeadMedic.
mysite.com/merchandise/category1/product-name1
mysite.com/merchandise/category2/product-name2
mysite.com/merchandise/category1/subcategory1/product-name1
mysite.com/merchandise/category2/subcategory2/product-name2
...
The one drawback is subcategory pages get 404.
So these URLs work:
mysite.com/merchandise/category1/product-name1
mysite.com/merchandise/category1/subcategory1/product-name1
However subcategory pages do not work in hierarchical construction:
mysite.com/merchandise/category1/subcategory1
mysite.com/merchandise/category2/subcategory2
I can solely entry these subcategories with out hierarchical construction. So these URLs work:
mysite.com/merchandise/subcategory1
mysite.com/merchandise/subcategory2
Have you ever bought any concept how I might prolong TheDeadMedic’s resolution to hierarchical taxonomies too.