Tell us what you are trying to do?
Hi I would need to be able to have two/three different filters for one view that all apply:
One filter is Posts with taxonomy Countries and slug "Community"
or
Second filter is Posts with taxonomy Countries and slug "National" and Custom Field Rank = "2"
or
Second filter is Posts with taxonomy Countries and slug "Global" and Custom Field Rank = "3"
Thanks
Hello,
There isn't such kind of built-in feature within Toolset plugins, you might consider custom codes, for example:
1) Setup a post view:
- Query posts
- In view's loop, display post information
2) Use filter hook "wpv-filter-query" to trigger a custom PHP function:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
3) In this PHP function:
Get below post IDs three times:
- Get all posts IDs which are with taxonomy Countries and slug "Community"
https://developer.wordpress.org/reference/classes/wp_query/
- Get all posts IDs which are with taxonomy Countries and slug "National" and Custom Field Rank = "2"
- Get all posts IDs which are with taxonomy Countries and slug "Global" and Custom Field Rank = "3"
Merge above IDs into a PHP array, and pass it as View's query paramter "post__in":
https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters
post__in (array) – use post ids. Specify posts to retrieve.
For your reference.