Skip Navigation

[Closed] I am trying to modify a view's custom field filter to include multiple operators

This support ticket is created 4 years, 10 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1571749
Annotation 2020-04-02 091752.jpg

Tell us what you are trying to do?
This is the filter I need:
(( $(wpcf-start_date) gte 'TODAY()' ) OR ( $(wpcf-end_date) gte 'TODAY()' )) AND ( $(wpcf-cancelled) ne '1' )
I have the date filter working fine but don't know if it is possible to add another operator?
Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1571973

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The only way to change the logical operators for the custom field filters you added is you can customize the view's filter arguments on fly using the view's filter API hook: wpv_filter_query

More info:
=> https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

Please let me know if you require further help to customize the query argument. If yes: you need to send me admin access details and the edit view URL.

*** 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.

The topic ‘[Closed] I am trying to modify a view's custom field filter to include multiple operators’ is closed to new replies.