-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page List: Add parent parameter to show all child pages of current page #31063
Comments
For my case of trying to show a listing of all child pages, this might be a better for the Page List |
- Add a childrenOnly attribute to Edit - Update render to use attribute and only pull in children Fixes #31063 ?? This uses global $post which is probably not ideal
- Add a childrenOnly attribute to Edit - Update render to use attribute and only pull in children Fixes #31063 ?? This uses global $post which is probably not ideal
I've closed #33883 as a duplicate. That suggests being able to specify the parent page for filtering the results as well as the option to use the current page. The two requests are so similar that I think it would make sense to combine them in this issue. |
- Add a childrenOnly attribute to Edit - Update render to use attribute and only pull in children Fixes #31063 ?? This uses global $post which is probably not ideal
- Adds a showOnlyChildPages attribute to Edit - Update render to use attribute and only pull in children - Do not show on post pages which will not have a parent - Allow showing on wp_template pages Fixes #31063
- Adds a showOnlyChildPages attribute to Edit - Update render to use attribute and only pull in children - Do not show on post pages which will not have a parent - Allow showing on wp_template pages Fixes #31063
- Adds a showOnlyChildPages attribute to Edit - Update render to use attribute and only pull in children - Do not show on post pages which will not have a parent - Allow showing on wp_template pages Fixes #31063
+1 for this – would be very helpful and solve several other issues. Are there any workaround for this as of yet? |
Closed by #45861! |
What problem does this address?
The goal is to allow a page to create a menu/list of posts of all the children page, sorted by menu_order.
The solution in PHP could something like this:
An issue with pages is there is no means to add additional tag or category information as another means of limiting what is returned by the query.
Possible this should just be added to: #24934
The text was updated successfully, but these errors were encountered: