Skip Navigation

[Resolved] Filter Posts by their Repeatable field group data

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

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 4 years, 4 months ago.

Assisted by: Jamal.

Author
Posts
#1687215

I have a CPT called 'Reps' and a Repeatable Field Group within called "contacts" which is a list of people and their respective contact info.

I want to be able to filter Reps by the names of those people, which is a field called 'contact name'.

I am using classic views to generate this view, so i added a filter with the field in question. however it doesn't work. when i search for "bob" no posts are displayed when there should be at least one.

#1687539

Hello and thank you for contacting the Toolset support.

The Toolset Repeatable Field Groups are based on one-to-many relationships, so each item of Reapitable Field Groups is also a single post. Toolset does not allow to filter two related post types at the same time. You will have to filter the generated custom post type(contacts) for your repeatable field. Then you will have to display their parent post(Reps) instead.
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent

Below some similar tickets that may help too:
- https://toolset.com/forums/topic/searching-repeatable-fields/
- https://toolset.com/forums/topic/filtering-a-view-by-a-date-field-in-a-repeating-field-group/

I remain at your disposal.