Try this:
$args = array(
'sort_order' => 'asc',
'sort_column' => 'menu_order',
'hierarchical' => 1,
'parent' => $post->ID
);
$pages = get_pages($args);
Related Posts:
- How to get current page ID outside the loop?
- How to give paged links custom title?
- featured image as background image on pages
- Can I display submenus in groups, using wp_list_pages?
- Order by menu_order and title?
- WP Page and Subdirectory with same name
- Can I display the widget admin in the page admin?
- How to inject custom url path for page ?
- How to display page title+link of page created by user
- Modify theme to get page excerpts on front page
- get_page_by_title not working when used with a variable
- WordPress twenty eleven sidebar on Pages
- Debugging shortcode problems
- How to get the list of posts in a static page other than front page?
- Guidelines for adding static pages
- Show child pages when on a child page
- How to display thumbnail and excerpt of a page on homepage?
- How to echo excerpts with wp_list_pages?
- Remove pages from backend list *and* update counter accordingly
- How do i fix? WordPress database error: You have an error in your SQL syntax;
- WordPress Admin – Add Edit link to specific page under Pages Menu
- Show child pages and sibling pages on the child page
- How do I use featured images on index.php?
- Making a wordpress page the index on the site?
- Problem With Pages Displaying
- Removing the TinyMCE editor for a given page template
- Using Pages to handle calls for custom post types
- Displaying Subpages while on Parent page?
- Guest authors, sort of like Wikipedia, but more theme-able
- Missing Pages (Drafts?)
- WordPress redirects me to posts page after editing one page
- Getting to a specific page on website using specific code instead of navigation bar
- Can’t see content on page to edit
- Pages views limit [closed]
- Redirect to page list when page published
- Having wordpress page accesss issue under sub-directory
- How to make my category archive behave like a page
- Add external css to Contact Page
- Role can edit just one page [closed]
- Suddenly forbidden 403 error on some pages
- how to edit source code of specific page in wordpress?
- How to select a specific page
- Cannot enter “::before” for li tag when editing a WordPress page
- How to get page_id for url rewrite or how to use page slug for calling a page?
- JQuery Plugins in WordPress
- Dynamic href link to Contact Page
- Restrict the list of parent pages to only those which are created by current user
- how can i remove page title on desktop view
- Is there a way to schedule changes to a page?
- How do I edit text displayed on my browser tab?
- List child pages within page template
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- Page menu not showing in admin, new Page button missing in toolbar too
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Order by modified date working in POSTS but not PAGES
- Allow a user to edit their own page and profile only
- WordPress Page doesn’t load the template selected
- Custom folder for wordpress page templates
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Can I use Pages like a Wiki
- list child-pages as normal pages?
- return page name in url
- Next and Previous Page links based on ‘Order’ attribute
- Create multiple pages with tables from json file
- Can i use 2 page content-forum & content-forum-slug on bbpress?
- register_rest_field only for specific page
- Update Pages ONLY from Stage to Live (not products)
- Attaching a file to a page without adding to media library?
- Every change made by “Author” role is going to “pending review”
- Groping Pages Per Department Option
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- WordPress default theme cannot get full page on entry content div
- Create multiple custom HTML pages
- Add homepage to the list of pages in the Footer Widget
- How to remove the duplicate title tags and duplicate meta descriptions?
- WordPress form submit to custom page template does not work
- Two different layouts for the same post
- My page title turns into a h2 tag – What to do?
- How do I locate a third party page represented as a slug in my WordPress website?
- problem with loading pages
- How to turn post into pages and via versa?
- Content not displaying on page
- Blank white space where header was [closed]
- Featured Image not displaying in a page
- Display child pages on homepage template
- Set order acs and no paging for archive page
- Pageview all of sudden not working
- Childpage title + content on Parent Page
- search page different results
- simple category search form returns full text – but I need excerpts
- Naming custom page templates
- How can I use Page editor for two separate templates?
- Sort the data in WordPress using get-page-by-title
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- Order pages by date
- In WP, Google map error initMap is not a function [closed]
- WordPress is picking up links that don’t exist
- Fresh WordPress installation not able to simply show page content