Navigation überspringen

[Gelöst] Display view that uses custom fields in a repeater on a parent relationship page

This support ticket is created vor 2 years, 2 months. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 2 years, 2 months.

Assistiert von: Minesh.

Author
Artikel
#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
versteckter Link

Need to display event from parent page on this child page that uses a content template, events.
versteckter 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
Unterstützer

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please check now:
- versteckter Link

I've created the following view that will help us to display repeating field group items:
- versteckter 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:
- versteckter 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!