Skip Navigation

[Resolved] Confused about Many to One

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

Our next available supporter will start replying to tickets in about 1.14 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#906419

I am trying to create post relationships between a Checklist post type and Person post type. I'm confused about how best to use the new capabilities of post relationships.

Let's say the Checklist is a training checklist. Each employee (Person post type) in a company will have a Checklist created for them. I can setup a parent/child relationship between the Checklist and Person post types to reflect this. That I get.

But in addition, I need to assign people to the checklist for various functions they provides, such as the primary contact, support contact and final approval contact. These additional relationships might all be the same Person or they could each be different people. For any Person, I want to be able to create views showing for which Checklists they're the primary contact, support contact and final approval contact. I think the new post relationship capabilities can help me do this, but I'm confused and unclear about how to structure the relationship for the primary contact, support contact and final approval contact.

#906654

Hello,

I assume we are talking about this case:
1) Two custom post types: "Checklist" + "Person"
2) One "Checklist" post can connect with one ore more "Person" posts,
3) One "Person" post can can connect with one ore more "Checklist" posts

If it is, I suggest you try to setup many-to-many relationship between post types "Checklist" and "Person".

See our document:
https://toolset.com/documentation/post-relationships/