I think thats a quick one:
I’ve got:
- Custom post type: Food
- Custom taxonomy (Registered to Food): Fruits
- Terms in Fruits: Apple, Orange, Cherry
If I type in example.com/food?fruits=Apple,Cherry, I get all posts in Fruits with the terms Apple and Cherry, thats great!
But I would like to type in example.com/food/fruits/Apple,Cherry or example.com/food/Apple,Cherry to get the same result.
I´ve tried different permalink and rewrite plugins related to custom posts but nothing helped.
Thank you,
David
You have to build up the link structure by using filters
post_link
andpost_type_link
:Where
hotel
is the post type andterritorio
is a hierarchical taxonomy.In post type creation use:
Note: if you want deeper links, your build should go deeper: