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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
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)
Dieses Thema enthält 6 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 6 Jahren, 8 Monaten.
Assistiert von: Christian Cox.