Navigation überspringen

[Geschlossen] Filtering a view by a relationship field

This support ticket is created vor 4 Jahren, 6 Monaten. 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Shane vor 4 Jahren, 6 Monaten.

Assistiert von: Shane.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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

Das Thema „[Geschlossen] Filtering a view by a relationship field“ ist für neue Antworten geschlossen.