Skip Navigation

[Resolved] Difficulty displaying repeatable field groups for child post on parent post

This support ticket is created 5 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.

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)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by harrietB 5 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1358361

Hi Support,
I have a 1-to-1 parent (Main Tour page) to child (St Lucia Tour) relationship. On the Tour CPT is a Tour Times repeatable group which I would like to show on the Main Tour (parent) page. I have created the view to display the loop of the repeatable items (query filter: tour times grp from where view is shown) and tried to generate something by creating another view with content template to load St Lucia Tour from db and adding {item="@page-st-lucia-tour} to select the tour related to where the view is shown on the Main Tour page.parent.
Please assist with the correct settings to accomplish this.
Thx Shaun

#1358567

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I hope you followed the following Doc to display the repeating field group.
=> https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups

If you are having still issues and not clear how to you that how to display your repeating field group, I need problem URL where you want to display the RFG and access details.

*** Please make a FULL BACKUP of your database and website.***
I have set the next reply to private which means only you and I have access to it.

#1358917

Minesh
Supporter

Languages: English (English )

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

I checked on your install and I found that you are using the following Content Template to display your page:
=> hidden link

Now, I see you created the following view that is looping through the RFG "Tour Times Grp" you created:
=> hidden link

what if you just add the above view "main-tour-times-internal" to the content template "page-bgz-template" - do you see any results? as you acknowledge that you want to display the view in sidebar - what if you use the view's widget and add it to your desired sidebar from: Appearance => Widgets => add WP Views widget to your desired sidebar

#1359133

My issue is resolved now. Thank you!
The solution was to wrap the view in a content template and then use the item=relationship delimiter. To get this on the sidebar I used the CT shortcode with the item delimiter and showed it through the Custom HTML widget.