I'm workin on new webiste and I got stuck :(
Basically I've created a custom post type for products with custom fields etc.
Each product has a main category and subcategory - selected from
<select>
<option value="category1">category 1</option>
<option value="category2">category 2</option>
</select>
<select>
<option value="subcategory1">subcategory 1</option>
<option value="subcategory1">subcategory 2</option>
</select>
inside editor.
The subcategory is based on category.
What I'm trying to achieve is to get permalinks based on both: category and subcategory fe.
domain.com/products/category2/subcategory1/product
Any ideas how to achieve this?