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?
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.
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)
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"
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.