Skip Navigation

[Resolved] Display repeatable field group in a view

This support ticket is created 2 years, 2 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 2.06 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by javierP-9 2 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2462271
repeatable-field-group.jpg
frame-2806.jpg

Hi again! Keep on working in my travel agency site and having issues with repeatable field groups. I have a custom post type for Tours and I've created a repeatable field group for this type with several departure dates and, in each of them, a checkbox to mark if that departure date is confirmed or not.

In the frontpage I have a design made with Divi and I created a view (created with the block editor) to display, filter and search the tours. In each tour card inside the view, I'm showing several custom fields of each tour, image, title, duration, etc, no problem with that. BUT I need to show for each tour in that view the next confirmed departure date from the repeatable field group if exists. Just the next one, that's have to be the first one ordered by date ascending.

I tried simply to add a conditional block in my view and set up a condition to show the field if the field with the checkbox is marked or not, but I can't choose the fields inside the repeatable field group for the conditional block, only regular custom fields are showed up.

So I tried to create a view just to display the departure date, filtered to match with my requirements (it has to be the first one with the confirmation checked) and then, include this view inside the main view with the tours loop, that's nested views. In the block editor it seems to work, but when I save the view nothing is displayed in my frontpage. If I delete the date view nested in the main one it works again.

In the attached image frame-2806.jpg you can see in the tour card's top left corner, the conditional label with the confirmed departure date in my prototype design, that's what I'm trying to get.

In the other one how is repeatable field group set up for the custom post type.

What is the link to your site?: hidden link

#2462801

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Block do not support nested view, when I say that, you should not add block view A and inside block view A another block view B.

What you should do is, try to create your view in classic mode for the repeating field group and add the required query filters to filter view based on the parent view item and then add that classic view inside your block view using the "Fields and Text" view.

Please let me know if you require further help on this matter.

#2463215

My issue is resolved now. Thank you again Minesh!