Passer la navigation

[Résolu] Display view that uses custom fields in a repeater on a parent relationship page

This support ticket is created Il y a 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Minesh Il y a 2 years, 2 months.

Assisté par: Minesh.

Auteur
Publications
#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
lien caché

Need to display event from parent page on this child page that uses a content template, events.
lien caché

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

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please check now:
- lien caché

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

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!