You can use for example very basic WP Query (or get_pages or what ever. this is just one example) (http://codex.wordpress.org/Class_Reference/WP_Query)
// The Query
$currentPageId = $post->ID; // get current page id inside loop
$args = array(
'post_parent' => $currentPageId,
'post_type' => 'page',
'posts_per_page' => -1
);
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
echo '<ul>';
while ( $query->have_posts() ) {
$query->the_post();
echo '<li>' . get_the_title() . '</li>'; // this one outputs only title
}
echo '</ul>';
} else {
// no posts found
}
/* Restore original Post Data */
wp_reset_postdata();
And there you have a list with titles for all the child pages of current page.
Related Posts:
- Why does the first category returned get echoed twice?
- get_children() not working properly – Only on one post?
- Display Categories or Subcategories with name & description in category.php
- get_pages displays only parents instead of children
- Get first level children of a page ID
- Check if Current Category has Children
- A check for if is parent page, if has children, if has grandchildren
- get_term_children for immediate children only (not grandchildren)
- get_children() Not Working with orderby Parameter
- Can I display submenus in groups, using wp_list_pages?
- Check if post has children or not
- How to display child term of current term’s parent taxonomy?
- How to order get_term_children output by alphabetic order
- Child pages on hierarchical Custom Post Types 404s
- Get threaded comments number
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- get_children – wp_get_attachment_image
- How can I make wp_list_categories output li with category-slug as class, for its children?
- How to get the excerpts of all children pages
- Showing current subcategory
- How to create drop down for child categories of current taxonomy being viewed?
- List the 5 most recent child pages
- Multiple Conditions for Child Page Title
- Exclude the parent custom post-type posts only
- Adding multiple post queries with parent and children to page – Best Way
- How can I paginate image attachments in a post?
- Show only first children level of current category?
- WordPress get the child pages of current page
- How to Display child post on his parent post with thumbnail and content in WordPress
- Advanced or not so advanced pre_get_posts query
- Query Posts Exclude Entire Category
- WP_Query: “post_parent” and “post_type” combination returning strange results
- WP_Query with meta_query for children
- How to target a specific custom post type post and its all children and grandchildren?
- Taxonomies on custom taxonomies
- Sort order by slug for looped child terms of custom taxonomy
- get_children displaying images removed from the page
- Category shows only top level child categories
- Better wordpress attachment query than this
- filter get_children to return all mime types EXCEPT ‘x’
- Walker class for sub-menu with ACF fields
- `get_terms()` with `child_of` and `childless` combined
- Showing categories and subcategories with posts
- List all posts with the parent or grandparent of a page with a specified ID
- Get gallery images from page ID
- How to customize taxonomy archive template files for subterms?
- Drop-Down Menu of Current Child Pages
- Menu Arrow for Child Element
- Is there a way to order children of post?
- Orderby menu_order not working; menu is sorted on publish date
- Display children category images
- How do I display child post types in the parent post type template
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- If product is in sub-category show code
- List child categories from parent category on custom taxonomy page
- Displaying direct children of other pages on homepage
- Don’t repeat posts from children in parent taxonomy query
- Get all children titles of a page as a link to them
- How to use wp_list_pages on a grandparent page
- Can you exclude child pages of a specific parent within a navigation?
- Want Page Descendants when using query_posts post_parent or child_of
- Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry
- get_page_children arguments – page objects?
- How to get post id of first child of the same post type?
- add slug of child(ren) to li using wp_list_pages
- How can I build a query that returns all attachments of a page and it’s children pages?
- Depth problem using wp_list_pages for subnavigation
- get_children() Archive Template
- Search anything from a Child and Sub-Pages of their Parent page
- Show subChild categories
- check if current page is a child of a specified top level page
- check if page have children, but not attachment
- Show children connected to parent pages
- wordpress custom menu – show parents, siblings, children depending on depth
- Attempting to get number of grandchildren of page in WP_Query loop
- Menu walker: how to tell if a sub menu contains submenus?
- Child and Parent Pages list of sub pages
- Custom post type loop without children
- How to create template for children category?
- Displaying Child Page’s Information
- WP_Query doesn’t works inside loop
- Get count for all terms inside a parent term
- How to display child pages with in a limited child content?
- Help understanding custom post type and children
- Show all child categories associated to post ID within loop
- How to show the view more on my display of pages shortcode
- Need list of child category post titles sorted by child category
- Nested custom post types templating
- Children Shortcodes?
- 1st Level Page with No Children
- Automatically add another subpost of the same parent when a subpost is saved
- Children categories not shown in dashboard
- Custom Post Type children and grand-children in one list
- list first post of Child Category on Category page
- how to list subpages in sidebar without widget
- get_children() returns ALL attachments instead only those attached to ‘post_parent’
- category & sub category order issues in wordpress
- How to retrieve posts from parent category, splitting them per children when displayed?
- query only direct child and sub-terms of a current term archive
- How can I structure my pseudo footer nav code with wordpress codex code?