Skip Navigation

[Resolved] parametric search with multiple children

This support ticket is created 4 years, 9 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.

Our next available supporter will start replying to tickets in about 0.85 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1498529

I have 4 post types: SHOWS, BANDS, VENUES, CONCERT SERIES
SHOWS has a parent-child relationship with BANDS, VENUES, CONCERT SERIES

I want to create a parametric search that allows you to filter SHOWS via Band, Venue and/or Concert Series.

When I tried to create, it seems that I can only choose ONE child for a filter. Is that true or am I missing something...?

#1500763

Hi, you are correct, and unfortunately this is a limitation of the current software: only one post relationship filter is supported per custom search view. The exception to that rule is multi-generational filters for chained parent-child relationships. For example, let's say you have Grandparent, Parent, and Child posts. You have a one-to-many relationship between Grandparent (one) and Parent (many) posts, and you have another one-to-many relationship between Parent (one) and Child (many) posts. This chained setup would allow you to filter child posts by Grandparent and by Parent.

While it is only possible to use one post relationship Query Filter, it is possible to use multiple taxonomy filters and multiple custom field filters. With that in mind, is it possible to utilize either of those as an alternative? If you need the features of a post (custom post url, custom fields applied to the post type, etc.), it may not be sufficient. In those cases, some custom code may be required to implement this type of search feature.