Problem:
The user has some taxonomy filter and would like to get the posts that match all of them.
Solution:
By default, Toolset will look for the posts that match any taxonomy condition. To achieve this, it will require custom code. Check this example:
add_filter( 'wpv_filter_query', 'func_change_filter_relation', 10, 3 ); function func_change_filter_relation( $query_args , $view_settings, $view_id ) { if ($view_id==1234) { if ( isset( $query_args['meta_query']['relation'] ) ) { $query_args['meta_query']['relation'] = "OR"; } } return $query_args; }
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - | 9:00 – 13:00 |
14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - | - | 14:00 – 18:00 |
Supporter timezone: Africa/Casablanca (GMT+01:00)