Problem: I would like to know how to create relationships between a WordPress User and a Custom Post Type post created by Types.
Solution:
I can think of 3 ways to link a User and a CPT post.
1. Make the User the author of the post.
2. Use a custom field to store a reference to the related item. For example, you can create a custom field on the CPT Member post that holds the related WordPress User's ID. Or you can create a custom field on the WordPress User profile that holds the matching Member's post ID.
3. Use a custom taxonomy that includes a term for each User, and apply that term to each related post.
Each option has its own pros and cons, so it often depends on your site requirements. I think #2 is usually the most practical.
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 |
---|---|---|---|---|---|---|
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 6 replies, has 2 voices.
Last updated by alberto 6 years, 1 month ago.
Assisted by: Christian Cox.