Skip Navigation

[Resolved] Adding Multiple Query Filters Based on One Custom Field Not Working

This support ticket is created 5 years, 11 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
- 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 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1191756
Capture1.JPG
Capture.JPG

I am trying to: Add multiple query filters onto the same custom field, but Views is not working properly.

Link to a page where the issue can be seen: This is happening in the backend.

I expected to see: A button that allows me to add multiple query filters.

Instead, I got: However, whenever I click on the button, the button just dissapears and does not allow me to add another option. You'll see from the before and after screenshots I took of the site, the button is there for me to be able to add another filter option using AND or OR. However, when I click on the button, you will notice that the button disappears and I do not get any new fields with which to enter the new query filter option. Please help.

#1191806
not-in.JPG

Hello,

This is expected result, you can add only one filter on the same custom field, there isn't such a built-in feature to add multiple filters on the same field.

And you are using old version of Views plugin 2.7.1, I have tried the latest version of Views plugin 2.7.2, it display just as the same as your screenshot:
hidden link

And in your case, you might consider using comparison "not in", then you will be able to setup mutiple options in the same filter, see screenshot not-in.JPG