Skip Navigation

[Resolved] Create a relationship that links one CPT to multiple other CPTs

This support ticket is created 6 years, 1 month 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
- 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Ben 6 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1122018

Ben

Is it possible to create a relationship that links one CPT to multiple other CPTs?

Say I wanted to link People to Cities and Countries.

Would I be able to do this with one Relationship? Or would I have to create two Relationships. One linking People and Cities, and another linking People and Countries?

#1122580

Hi Ben,

Thank you for contacting us and I'll be happy to assist.

It is possible to link a single CPT with multiple CPTs, but for that, you'll need multiple relationships, as well.

As a single relationship can only link one CPT with another single CPT, you'll create one relationship linking People and Cities, and another one for People and Countries.

I hope this clarifies and please let us know if there's anything else we can help you with.

regards,
Waqar

#1123848

Ben

Thank you for clarifying that Waqar!