Skip Navigation

[Resolved] Filtering a view to match two radio values in one custom field

This thread is resolved. Here is a description of the problem and solution.

Problem:
The customer asked how to set the query filter in the view to look for the two values from a radio-type custom field.

Solution:
Guided that to filter by the multiple custom field values, you can use the "in" operator, as can be seen in the attached screenshot.

Relevant Documentation:
n/a

This support ticket is created 2 years, 7 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by davidL-7 2 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#2384035
view-filter.jpg
custom-field.jpg

Tell us what you are trying to do?

Hi, I'm trying to create a view that filters a custom post type. Specifically, I'm filtering based on a custom field named "Closing Date" (radio field type) that has four possible values (Open, Closed, Pending, Coming - see screenshot). I need the view to display posts that match either the Open or Pending values.

On the View screen, I can successfully filter by matching a single value (see screenshot), but can't figure out how to filter for a match on two values. If I try to add a second filter, the field is no longer visible as a choice.

Is this possible to do, and if so, can you provide some direction? Thanks!

Is there any documentation that you are following? No.

Is there a similar example that we can see? No.

What is the link to your site?
hidden link

#2384409
query-filter-multiple-field-values.png

Hi,

Thank you for contacting us and I'd be happy to assist.

To filter by the multiple custom field values, you can use the "in" operator, as can be seen in the attached screenshot.

Note: Please make sure to use the custom field values and not the display text, set in the field.
( screenshot: hidden link )

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2384821

That's all I needed. Thanks Waqar!