This can be approached by using wp_dropdown_pages() with the child_of parameter.
global $post;
$args = array(
'child_of' => $post->ID
);
wp_dropdown_pages( $args );
The variable name will be $_GET['post_id'] or $_POST['post_id'], depending on your form settings, you can change the name by altering the name parameter. The value of the variable is the ID of the chosen page. Use get_the_title() to get it from the id in your $_GET/$_POST variable.
Related Posts:
- WordPress get the child pages of current page
- Get first level children of a page ID
- Listing Child Pages in Random order
- How to display child pages with in a limited child content?
- how to properly list child pages in sidebar?
- Get custom field value from Grandparent Page for Parent and Child Pages
- Given the page id, check if it has children
- How to get a list of all recently published child pages?
- Show siblings (if any) and parents
- List child pages of current page but limit to specific year
- wp_insert_post if page doesn’t exist under current page
- Child page excerpt
- Create WordPress child page from page actions
- How to show child page without providing ID so it’s dynamic
- is_child() function
- List all posts with the parent or grandparent of a page with a specified ID
- Get WordPress Child Page IDs
- Displaying the first child page of the parent page
- Adding title and description to subpage’s featured image
- Show list of Child Post in Parent Post
- List subpages in order
- parent page grabbing wrong url for child pages – get_page_uri($pageChild)
- i want to get the parent id, only on parent -> child -> child page
- Only one parent page showing
- Create a list of pages excluding children of selected page
- WordPress Betheme: Unkown subheader image of a child page
- How to disable alphabetical sorting page
- Structure for calling child pages
- Child pages and sub-pages do not appear. Why?
- Add link to parent page in list of child pages
- Display child pages full template including the content
- List child pages, exclude the current page
- How to show the view more on my display of pages shortcode
- Display Tags of Child Pages
- Get post_meta of children and compare to current page ID
- Display the latest content from subpages of another page
- Get Child Custom Post Content on Single.php?
- Limit the number of child page displaying
- Show the grandmother/father of the childpage
- How to Hard Set the Parent Page in Template
- Website parent child relationship
- Get parent page url to show up when it is in child pages
- Check if Current Category has Children
- Can I have two child pages of different parents with the same name?
- How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
- Advanced Custom Fields – Get custom fields from parent page
- Child Pages Loop
- Show content if parent page has children
- Delete Child Posts
- How can I calculate the total number of categories at different hierarchy levels?
- Only allow new subpages to be created
- get_children – wp_get_attachment_image
- Share parent path between Custom Post Types and Pages?
- Load child template based on parent
- Need wp_query to return all children and grandchildren
- How to get specified parent page title in my function
- How do I list the child of a child page [duplicate]
- Custom rewrite rule for hierarchical custom post type
- Best way to give site sub-page it’s own domain?
- List children on child post
- Append a code when at the current page in wp_list_pages()
- display childs without parent
- Verify if the current page has at least one published child
- How to retrieve parent menu item name of current submenu item
- Versioned Custom Post Type (Not the same as revisions)
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- How do I Turn This Into An if statement?
- Query Pages and post excerpts dynamically
- Can a user find a child page?
- List of child custom post types lists all custom post types
- Redirect to first child on Custom Post Type (without template)
- How to display childrens custom fields?
- Query to get child pages of current page and display it in action hook
- Display child page content of a specific parent on home page
- When listing child pages run out of memory
- Is there a way to dump all registered sidebar/widget?
- get_page_children arguments – page objects?
- Migrate Custom Post Type with Custom Fields data and parent child order
- Return true if parent page id matches
- Get a page ancestor from a most viewed list
- Getting one specific value from get_children array
- Display grandchild page content on parent page
- PHP: Why does my code work in index.php but not a widget?
- How to show children pages as array
- WordPress custom post type and page
- Child Theme problems
- Menu order of parent menu from perspective of child menu
- How to copy specific page content and create child page?
- Display Child Page with custom fields within Parent Page
- Custom post type child page 404
- Display thumbnail of child, parent and ancestor using featured thumbnails
- How to accomplish a child page navigation?
- Get current post’s child page?
- Woocommerce – Making product pages child of shop
- get_children() returns ALL attachments instead only those attached to ‘post_parent’
- Subpages menu on sidebar plus widgets
- get_category_children/ the new get_term_children not work
- highlight parent page on menu when child page is on sidebar (and not on menu)
- Subpage for Custom Post Type
- Slug of a child page is accessible with and without the parent slug in the URL