Skip Navigation

[Resolved] Relationship between CPT and User

This support ticket is created 5 years, 2 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by viktorI 5 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1201939

Hello,
my membership site require relationship between Company (CPT) and User, it's one to many where a company can link to mulitple user.

When i try to create relationship, it's not possible to link Company to User.

Any workaround ?

#1202156

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Victor

You cannot create relationships between users and posts.

To achieve something similar, you need to make "profile" posts for each user (which they are authors of) and then connect those profile posts to other post types.

It is described in more detail here: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

#1202492

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.