Saltar navegación

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 3 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 -

Zona horaria del colaborador: Asia/Karachi (GMT+05:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por davidL-7 3 years, 11 months ago.

Asistido por: Waqar.

Autor
Mensajes
#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?
enlace oculto

#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: enlace oculto )

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!