Problem: I would like to use hierarchical Pages to create parent and child Pages. On one child Page, I would like to show a View of sibling child Pages. On the parent Page, I would like to show a link to this child Page.
Solution: Blocks offers a hierarchical post parent filter that can respond to a URL parameter. The View portion of this problem could be solved in the Blocks editor alone without classic Views. However, to create the link to the child Page on the parent Page, you must use shortcodes to add this URL parameter to your child Page link on the parent Page, and use it to pass the current (parent) Page ID into the URL parameter. Then on the child Page, display a View of Pages filtered by parent post ID set by the URL parameter of your choice.
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-post-parent/
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.