Problem:
How can I display a Post, that is Grandchild of a given Post.
Grandchild means, it's a Child of a Child of a Parent Post.
Solution:
You just need to create at least 2 Views
1. First View you query by
Select posts that are a children of the current post in the loop
2. Second View you query either by
Select posts that are a children of the current post in the loop.
or by
Select posts that are children of the Post where this View is shown.
(If you want to use this on a single Post)
3. Insert the First View to the Second View's Loop
4. Insert the second View to the Parent Post, or to a 3rd view where you query those parent posts.
The end result is:
- View > Lists certain Posts not child of any
-- View > Lists posts child to the post in the Loop of the above View
--- View > Lists posts child of the post in the Loop of the above View
The Final output is a GrandChild List.
Relevant Documentation:
https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/
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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 4 replies, has 2 voices.
Last updated by eliseD-2 7 years, 12 months ago.
Assisted by: Beda.