Skip Navigation

[Resolved] display relationship (custom field) in loop

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 2 replies, has 2 voices.

Last updated by federicoA 1 year, 1 month ago.

Assigned support staff: Luo Yang.

Author
Posts
#1864109

I can't find in the documentation how to insert relationships into a look using tollset block.
For example, I have Events and Places in relation. In the loop I have to show all the events and where they are made.
thanks

#1864261

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

In your case, it needs nested views, for example, in the loop you mentioned above, insert a view block:
- Query Events posts
- Filter by relationship between Events and Places
See our document:
https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items

#1864541

My issue is resolved now. Thank you!