Tell us what you are trying to do?
- looking for the best working way to filter view results using repeatable group fields.
For example I have a repeatable group "Education" with fields "School name" and "School City" etc. I want to be able to filter posts by "School name" and "School city".
- - as I see for now using repeatable group fields directly in the filter (query by URL parameter) is not working: no options available in a filter. One idea comes to my mind is having a separate post types instead of repeatable groups and merge them in another view with a filter. But that's sounds like to complex solution. I believe there should be another option
Is there any documentation that you are following?
- as far I search on the forum info is 1-2 + years old and I seen some comments from Toolset team that filtering by repeatable group fields was going to be implemented. One with options thread I found: https://toolset.com/forums/topic/filter-posts-by-their-repeatable-field-group-data/
Is there a similar example that we can see?
- I didn't find any
What is the link to your site?
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
Your observation is correct and currently, it is possible to only add a search or query filter for the fields directly added to the post type. Fields added inside the repeatable field groups are stored with a separate hidden child custom post type, so they can't be used with the search of the actual/parent post type.
As a workaround, you can use two separate search views, on the same or separate pages:
1. First for the parent post type that only offers the search fields from that post type.
2. Second for the child post type "Education" (repeatable field group), which offers the search fields for the fields in the repeatable field group. In this second view, you can show the related parent post's title instead of the current child "Education" post.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!