Skip Navigation

[Resolved] create a list of child pages for a give page with VIEW cell

This support ticket is created 7 years 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)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 6 years, 12 months ago.

Assisted by: Minesh.

Author
Posts
#600983
Toolset-ChildPages-2.jpg
Toolset-ChildPages-1.jpg

I am trying to:
create a list of children pages for a given page with VIEW cell

Link to a page where the issue can be seen:

I expected to see:
a list of children pages of the page I specified

Instead, I got:
no pages listed
pages not filtered

While designing the View,
from 1st image attached, you can see that I specifically set the post type=PAGEs, not POSTs.
from 2nd image attached, you can see that
the Query filter is set as follows
Select POSTS (I need PAGES, but have no choice here) that are children of ...
for Specific PAGE: Bookmarks

And you can see in the light yellow area:
This will filter out POSTs of the following types, because they are not children of any other post type: Pages

After I save the View settings, it shows:
No items were returned by the View
But I know for sure there are many children pages under Bookmarks page
.
why is that?

#601006

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - You selected wrong filter. You need to add " Post parent filter" and select the option Parent is: Page and chose your page Bookmarks as parent page.

Please check following screenshot:
=> hidden link

More info:
=> https://toolset.com/documentation/user-guides/filtering-views-query-by-post-parent/

#601209

Thanks, it works. But still ...

The question I have is:
I am designing a VIEW to show the children pages of current page, in my case, Bookmarks.
or put it in another way,
I like to set up a VIEW such that whichever page I apply this view to,
it will display the children pages of current page (or THIS page).

If I set it up in (coding in) Page Template, I'll find the (current, this) Page ID and get the list of all children pages of this page.
But with Toolset, my questions are:
1. Is it possible to set up such a generic VIEW where I just apply it to any page, and it will display its children pages?
2. what's the difference between
Select posts that are children of... (I used this one, but it does not work)
and
Select post with parent: (this one works)

Thanks

#601500

Minesh
Supporter

Languages: English (English )

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

Well - to make it generic for all views and make your current page as parent.

But with Toolset, my questions are:
1. Is it possible to set up such a generic VIEW where I just apply it to any page, and it will display its children pages?
==> Yes - You need to add " Post parent filter" and select the option Parent is: "Parent is the page where this View is shown"

More info:
=> https://toolset.com/documentation/user-guides/filtering-views-query-by-post-parent/

2. what's the difference between
Select posts that are children of... (I used this one, but it does not work)
=> Well - this filter used to filter the posts if you build Types relationship using parent/child CPT.