Saltar navegación

[Resuelto] Display many-many relationship field in Content Template

This support ticket is created 3 years, 6 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.

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Christopher Amirian 3 years, 6 months ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#2503929

I have many to many relationship between post type "Journal" and "Person"
Relationship slug "journal-people"
"Journal" post type as parent

I want to display Person type field that have relationship with Journal on single-post template "Journal"
I have tried these short code
[wpv-conditional if="( '[wpv-post-id item='@journal-people.intermediary']')"][/wpv-conditional],
[wpv-conditional if="( '[wpv-post-id item='@journal-people.association']')"][/wpv-conditional]
[wpv-conditional if="( '[wpv-post-id item='@journal-people.parent']')"][/wpv-conditional]
but still no luck. Any suggestion?

Thank you,

Eko

#2504807

Christopher Amirian
Colaborador

Idiomas: Inglés (English )

Hi there,

To show the relationship you will need a separate view and you will set it to have data with the relationship in question.

For more information:

https://toolset.com/course-lesson/displaying-related-posts/

Thanks.