Skip Navigation

[Resolved] Display connected posts through different Relationships

This thread is resolved. Here is a description of the problem and solution.

Problem:
Display connected posts through different Relationships

Solution:
You need to use the nested view to display each relationship level.

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/display-connected-posts-through-different-relationships/#post-1175375

Relevant Documentation:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/

This support ticket is created 5 years, 10 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Ben 5 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1175362

Ben

Imagine that I have 3 CPTs: People, Groups, Work. I originally wanted to create a Relationship that connected People & Groups to Work, but it is only possible to connect one CPT with one other CPT using Toolset.

So now I have set up three different Relationships to work around this: People and Groups, People and Work, Groups and Work.

Imagine I connect a Person to a Group, then connect that same Group to Work. Can I display that Work as a related item of the Person in any way? They are not directly connected, but "distantly" connected through two different Relationships. Person to Group, then Group to Work. Can I display these "distant" relations through Toolset?

I hope the above makes some sort of sense. If you need any clarification then please let me know and I'll be happy to provide some more details.

#1175375

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well -Yes, I think it is possible but to loop through each relationship level, you need nested views.

Imagine I connect a Person to a Group, then connect that same Group to Work. Can I display that Work as a related item of the Person in any way?
==> Assuming you are displaying the single post that belongs to person post type, you should create a view to display groups and in this view, you should add another view that display related works post that belongs to the group.

More info:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/

#1177770

Ben

Thank you Minesh.