1

I have a custom post type 'products' with custom taxonomy 'brands'. My URL structure should be:

  • domain.com/brands - should list the brands
  • domain.com/brands/brand/ - should list products of the selected brand
  • domain.com/brands/brand/product/ - should show the selected product

How do I define the URL rewrite of the CPT / taxonomy for this to work, and what template file lists the terms of the brand taxonomy, instead of listing posts?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.