Skip Navigation

[Resolved] Custom Fields Filter dont show "or" or "and" field anymore?

This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 3.92 hours from now. 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Adnan 2 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#2422319
views_screenshot2.jpg
views_screenshot1.jpg

I am trying to:
I want to edit the view
Link to a page where the issue can be seen:
screenshot
I expected to see:
cant edit
Instead, I got:
cant edit

#2422859

Hello,

Thanks for the details, I can duplicate the same problem, and have escalated this issue, will update here if there is anything news.
Currently, please try with "wpv_filter_query" to change filter logic, for example:

add_filter('wpv_filter_query', function($query, $args, $view_id){
	if($view_id == 123){
		$query['meta_query']['relation'] = 'OR';
	}
	return $query;
}, 10, 3);

More help:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

#2422959

My issue is resolved now. Thank you!