Navigation überspringen

[Gelöst] Can you setup relationship fields with a user?

This support ticket is created vor 6 Jahren, 1 Monat. 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von AndreG3332 vor 6 Jahren, 1 Monat.

Assistiert von: Waqar.

Author
Artikel
#1147023

HI There,

I have a very technical issue. Would the following be possible, if not what would a workaround be?

I have created a custom field group on users to add extra fields to the user post type. Now I need to create a set of six fields that need to be relational to the "user" field ie past employment records. I don't see options in the "relationship" field to link something as a relational post to "users".

#1147038

Hi Andre,

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

The post relationships can't be extended to "Users" because technically the users are not a post type.

A simpler and the natural way to achieve this would be to create a new custom post type for storing past employment records and then link individual record to a user, through the Post - Author relationship.

This way whenever you'd like to show employment records for an individual user, you can call them by showing all the records, where post author is that user.

I hope this helps and let me know if you have any further questions around this.

regards,
Waqar

#1150415

My issue is resolved now. Thank you!