Saltar navegación

[Cerrado] Filtering a view by a relationship field

This support ticket is created hace 4 años, 7 meses. 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane hace 4 años, 7 meses.

Asistido por: Shane.

Autor
Mensajes
#1664771

I have created a view that succesfully displays the related posts for a specified post type (in a post relationship). Now, I want this view to display only the related posts with a specified value for a relationship field. I have tried adding this field to the query filter, but unfortunately the views displays no results when this filter is added.

Is it possible to filter related posts in a view by a relationship field at all?

Thanks!

#1665329

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Joost,

Thank you for getting in touch.

Is there an intermediary CPT for this relationship? or is the custom field on either the Parent or Child Post.

Either way you are only able to filter by fields that appear on the post directly. So if you want to filter Child A by a post field on Parent A then it won't be possible.

Thanks,
Shane

El debate ‘[Cerrado] Filtering a view by a relationship field’ está cerrado y no admite más respuestas.