Skip Navigation

[Resolved] Display view that uses custom fields in a repeater on a parent relationship page

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)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 8 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2691465

Tell us what you are trying to do? Display a view that uses custom fields in a repeater on a parent relationship page

What is the link to your site?
Parent Location page with event showing, its on a tab. This is a location CPT content template
hidden link

Need to display event from parent page on this child page that uses a content template, events.
hidden link

I created a copy of the view and placed it on the events page, I tried adding item='@location-events.parent' to the shortcodes but displays no events even though there is one showing on the parent page.

access details removed

#2691515

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please check now:
- hidden link

I've created the following view that will help us to display repeating field group items:
- hidden link
Where:
- You can click on the "Edit with Block editor" button and add the fields you want to display for repeating field group item.

With your edit content template page:
- hidden link

I've added the above view as given under by adding shortcode block at top of the content template.

[wpv-view name="cv-display-ce-slonly" wpvrelatedto="[wpv-post-id item="@location-events.parent"]" cached="off"]

You can move the shortcode block where you want to display and configure the view's loop to display whatever fields you want to display.

#2691572

Thank you so much, I have it all set up and it looks great!