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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
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)
Ce sujet contient 6 réponses, a 2 voix.
Dernière mise à jour par Il y a 6 années et 8 mois.
Assisté par: Christian Cox.