Hi Minesh, many thanks for the prompt reply. Sorry I have now found the option which was hidden under 'Screen Options'.
I have now set this up and it now filters all the post under this taxonomy.
How do you then add a dropdown category filter to this to further filter the results?
You should remove the existing filter if you have added to "Search and pagination" section and also remove the "Query filter" for that taxonomy from "Query filter" section and save your view.
Then you should try to click on button "New filter" button to add your taxonomy filter (it will add related "Query filter" automatically).
Hi Minesh, I have tried this but this then displays all of the CPT posts. I am trying to display all the post from the taxonomy 'Accommodation Type' and then filter by the accommodation type category.
Can you please share few screenshots what exactly you want to display as output and problem URL where you added your view and access details that will help me to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh, yes that is perfect and works how I had planned. I have two more of these to create which now seems straight forward.
Where can I find the ID's for the post and taxonomy?
add_filter( 'wpv_filter_query', 'func_prefilter_post_taxonomy', 99, 3 );
I can find the view ID and the terms ID OK.
Ok I see, I think I am nearly there.
I have created a 'Where to Eat & Drink' page but this also displays all the posts and not the posts from the 'food & Drink' taxonomy. hidden link
Where am I going wrong. Thank you for you patience.