Skip Navigation

[Resolved] Is it possible to assign a taxonomy or a relationship to a user

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

Problem: I would like to know if it's possible to assign a taxonomy to a User, or to create a relationship with a User.

Solution: The most flexible approach is to use a proxy post type that represents Users, and set each User to be the author of one proxy post. Then you can assign taxonomies and post relationships to the proxy post.

Relevant Documentation: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by sergeP 5 years ago.

Assisted by: Christian Cox.

Author
Posts
#1375009

Hello,

The website has authors.

1./ I would like to assign a taxonomy (music style but also country and regions) to the profile of the author.

2./ Furthermore, I would like to create a relationship between authors and CPT (A author could have a relationship with

3./ Finally, I would like to be able to assign a relationship between an author and another user role (example : Artist).

Is it possible with Toolset ?

Looking forward hearing from you soon,
Best regards,
Damien

#1375169

Hello, by default WordPress does not allow taxonomies to be applied to Users and Toolset's post relationships are limited to posts. Not directly, at least...but there is a way to work around this by using a proxy post type. Basically you create a custom post type like "Members" or "People". Then you create one post for each User - a "proxy". The User is set as the author of their post. Our documentation team put together some information about this proxy approach here: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

1./ I would like to assign a taxonomy (music style but also country and regions) to the profile of the author.
You can assign any taxonomies and terms to a proxy post type, and set each User as the author of one of these proxy posts.

2./ Furthermore, I would like to create a relationship between authors and CPT (A author could have a relationship with
You can create a post relationship between the proxy post type and your other CPT.

3./ Finally, I would like to be able to assign a relationship between an author and another user role (example : Artist).
Sorry, I don't quite understand. Is this a way of creating relationships between Users? Or a way of assigning multiple roles to one User? Please provide more information and I'll give you some feedback.

#1377711

hello Christian,

I will use a proxy CPT then.

Thank you,