Problem:
Show child post id on parent php template
Solution:
To get the related child post using PHP, you will require to use the function: toolset_get_related_post() [for single child post]
=> https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_post
OR
toolset_get_related_posts() [for multiple child posts]
=> https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
Relevant Documentation:
- https://toolset.com/documentation/customizing-sites-using-php/displaying-child-posts/#displaying-child-post-contents
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
Ce sujet contient 2 réponses, a 2 voix.
Dernière mise à jour par Il y a 3 années et 10 mois.
Assisté par: Minesh.