I have created a custom Post Type called “Tour” which Holds up-to five Taxonomies called “destination”, “Types”, “Month of Travel”, “Year of Travel” and “Led by”.
Now I brought them as drop-down category using “wp_dropdown_categories” – (each of the taxonomy were listed as drop down). and search term works fine in the combinations (if exist).
for example:: I am searching for “destination” as “Bangalore” and “Month of travel” as “June” combination works as post were chosen on particular terms. ~ it’s perfect.
But, when there is no post chosen for a category / no search combination avail… It triggers “No post available”. ~ its a common things in word press.
So I prefer to filter the TAXONOMIES based on the Previous TAXONOMIES (Its little confusing while relating them).
Here is the main concept:
If I choose the “destination” as “Bangalore” I need the “Type” to be filtered based on the destination. that is Bangalore can have only two types “A type and B Type” rest of the type should be ignored. – (Once again all the five thing comes as Taxonomies).
I want something like this
if post_type=tour&tour_destination=bangalore filter the other taxonomies with relevant terms?
Help me ~ thanks in advance
dev
I did few tweaks on the earlier code, the first filter is working fine for now, I am little confused on the rest any suggestion sven ? can you help me to bring this effectively.
file test.php
If I make mistake any where please advice me …, Thanks