Skip Navigation

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

This support ticket is created 2 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.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 2 years, 6 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#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
Supporter

Languages: English (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.