Skip Navigation

[Resolved] Display a list of posts with their child posts

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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)

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by katerinaA 5 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1222192

I am trying to get a view of all posts and under each one display a list of their related child posts.

I checked your documentation but only managed to find info for a content template that displays one post with related. I need a list that displays them all in one page and their children at the same time

Thank you

#1222236

1. Create a View that displays the one end of the Post relationship (parents) and insert the Post Title or similar to the loop.
2. Then create a second View, where you display the other posts (child) and set a query filter like "Select posts in {relationship chosen} that are a related to the current post in the loop." Also insert a Post Title to it's loop.
3. Then, insert this last View to the View #1's loop just below the Post Title ShortCode.
4. Insert the View #1 in a page to see the list of parent posts with each a list of child posts.

#1222271

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the Doc that will help you to configure your child view mentioned by Beda in step #2:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/#3-creating-a-view-that-lists-the-children-of-the-parent-post

You should follow all other steps as stated in the previous reply from Beda.

#1239386

I just found the time to return to this problem, but with your help it was a matter of minutes!
Thank you Beda for your guidelines, but also Minesh cause your support msg just made my life easier 🙂
Thank you again. Everything works great and I also learned something new!