Saltar navegación

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

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.

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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh 2 years, 2 months ago.

Asistido por: Minesh.

Autor
Mensajes
#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
enlace oculto

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

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
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please check now:
- enlace oculto

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

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!