How to include two disjoint (NO parent–> child relationship) Custom taxonomy in permalink of a Custom post type?

Question

This is a long standing question but i am not sure it has been properly addressed. So let me ask it again and will keep it simple.

Background

My domain name —> abhi.dev.cc

Custom Post Type —> Tours

Custom Taxonomy1 —> Destination (I have defined 3 possible values “London”, “Amsterdam”, “Delhi”)

Custom Taxonomy2 –> Activity (I have defined two possible values “Walking”,”Cycling”)

Each “Tours” post type is assigned one value for Destination and one value for Activity.

Output required:

How can i achieve following:

1) abhi.dev.cc/Tours —-> list all posts of CPT =”Tours”

2) abhi.dev.cc/Tours/London/Walking —-> list all post with Destination = “London” and Activity =”Cycling”

3) abhi.dev.cc/Tours/Destination/London —>list all posts with Destination = “London” (whatever the Activity may be)

4) abhi.dev.cc/Tours/Activity/Walking—>list all posts with Activity = “Walking” (whatever the Destination may be)

5)abhi.dev.cc/Tours/ExoticLondoncyclingtour —> displays the post of CPT = Tours and postnane = “ExoticLondoncyclingtour”.

Trust me I have read all the similar posts and none of the codes work. Most of these posts are many many years old.

Feel free to direct me to a agency or developer who can fulfil this requirement.

My email is abhigupta.abhishek@gmail.com

Regards,
Abhishek

0
, , AbhiGupta 7 months 0 Answers 94 views 0

Leave an answer