Problem:
How to access the parent ID from child post
Solution:
to access the parent ID when you have created post type relationship with Types plugin version 3.x.x - you can use the following shortcode:
[wpv-post-id item="@relationship-slug.parent"]
Where:
- Replace relationship-slug with your original post type relationship slug.
Relevant Documentation:
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)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 3 months ago.
Assisted by: Minesh.