Problem: I would like to use Gravity Forms to create a child post, and I would like to know how to associate that child with a parent post.
Solution: To associate a parent post with a child post, you can use the update_post_meta function with the _wpcf_belongs_business_id meta key:
update_post_meta( 456, '_wpcf_belongs_business_id', 123 );
Change 456 to the child post's ID, change 123 to the parent post's ID.
Relevant Documentation: https://codex.wordpress.org/Function_Reference/update_post_meta
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 3 réponses, a 2 voix.
Dernière mise à jour par Il y a 7 années et 2 mois.
Assisté par: Christian Cox.