Problem: I have a parent - child post relationship set up. On the child post template, I would like to display a list of other sibling children of the same parent post.
Solution: Create a View of the child post type and add a post relationship Query Filter, where the parent post is set by a shortcode attribute. Place the View shortcode in your template and pass in the parent post's ID using the post ID shortcode and the item attribute:
[wpv-view name="your-view-slug" wpvrelatedto="[wpv-post-id item='@relationship-slug.parent']"]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/
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 |
---|---|---|---|---|---|---|
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)
This topic contains 2 replies, has 2 voices.
Last updated by 4 years, 8 months ago.
Assisted by: Christian Cox.