Skip Navigation

[Resolved] Can't selet post relationships in loop

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

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by coreyh-2 4 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#1598235

Tell us what you are trying to do? I'm just trying to display the post title of a child relationship in a loop with the post title of another post type but when I go to insert either fields or single fileds i'm unable to check the box to select the relatioship . Here's a screenshot hidden link I"m also unable to select a child relationship from the source here hidden link

I'm trying to follow this https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/

#1598945

If you hover over the blue/white question mark it will explain why it is not working
Likely you are querying (in that View) either a "one post" end of a relationship and have "many" other posts linked to one post, so you cannot display the related data in a single instance

Instead, you'd have to query the post type with "many" posts in the relationship and then you can display the (single) related element of each post in the loop
Or, if you have a many to many post-relationship, you would need 2 views, one queries the one end of post type relationship and the other view, inserted in its loop, will query the related post type by "related to post set in the parent View" (or current page, if you insert it in a page)

Does this help?
I can set up an example for you if you prefer!

#1607581

My issue is resolved now. Thank you!