Are you sure you need this specific function? Documentation (both Codex and inline) is verrry confusing. And it supposedly fetches things like attachments, which probably aren’t relevant for navigation…
Try this:
get_posts( array(
'post_type' => 'page',
'post_parent' => $parent->ID,
'orderby' => 'menu_order'
) );
Related Posts:
- How to create a “latest news” page showing a list of posts from blog category
- Any difference betweenn posts and pages for one page?
- Get Posts Under Custom Taxonomy
- Get current menu_order
- Get content from one page and show it on another page
- how to limit edit_form_after_title hook to page and post edit only?
- How to know if get_posts() failed?
- Create custom page in WooCommerce
- Is there a WordPress equivalent to MediaWiki templates
- Getting an alphabetic post list with two letters onclick on letter
- Change WordPress post-state in Admin Area
- Pagination not working on Custom Page Template
- how to show all post in my page-grid.php template page
- eBooks download website, page or post?
- Multiple loops in same page, without duplicate content
- Include related posts on a page
- Can I hide a specific post from latest posts page?
- $post object is null
- How to show post(excerpt) from specific category on wp page?
- Is there any WordPress alternative to Book module of Drupal?
- Convert a complex webpage into WP theme
- How Can i Get 5 Recent Post Title With Corresponding Link?
- Get specific posts by ID in wordpress
- Automatically republish old posts
- Should a photo gallery be in a post or on a page?
- Can I divide the pages into categories?
- How do I get blog posts to appear within CMS?
- Multiple loops are not reset
- Drag posts and pages so you can sort them in order
- 301 (static page instead latest posts)
- Using wp_list_pages() after calling query_posts()
- How to get posts and comments amount per hour, per year and per month?
- Multiple Loops Breaking Pages
- How to Get Posts, Including Private Ones?
- Random posts from a pool of posts
- Proper way of establishing custom landing pages in WordPress
- Conditional Tag for has post [closed]
- is_page Funtion for Posts ?
- Admin – no Featured image choice in create new/page|post
- WordPress Query Posts From Category Post on Static Page
- Intercept page request and add value to it
- Output Post with ACF Fields into other Post
- get_children returns older images
- How to get post with slug and exclude categories
- Detecting current page from class method
- List all posts, pages and custom post types in admin
- Change Author Name to Sitename on Frontend
- Are post, page and category IDs unique to each other?
- Showing recent post of category in page
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Create a frontpage.php and static page template
- Have posts included on a page that share same category
- Preview page/post revisions without overwriting current content
- Link from Post to Another Post Via Clicking on Words within Original Post
- Link to older links
- How to show next/prev link, when it’s not active?
- Prevent 404 of Author pages without posts
- What would causes search to return incorrect results?
- Cannot publish posts, but can create new pages
- Making a new post visible on a specific page
- How to add content above footer in posts from specific category
- Can I restore restore content from old Worpress site to a new Worpress site from an archive
- Edit post & page option does not display on latest wordpress
- Custom Fields – How to get the list of a specific active widget each time it rendered
- get posts, run a custom query, and join the results
- Google indexing duplicate page content with Page #### in post title and /page-2 in permalink instead of the ones I set
- Add CSS and JS files of the template post on a WordPress page
- Can’t find webpage on All Pages or All Post menus
- Display all tags even if they are not assigned to a post
- how to put post customized in page
- REST API Working for GET but not for POST?
- Show code only on WooCommerce Pages
- Fill the exclude array() in get_posts()
- Very weird behaviour after removing WP pages
- Multiple Pages – Seperate blogs
- How to add navigation arrows to manually slide through posts?
- Posts on Sidebar only
- Posts are not showing up on next page.
- How to convert return type of ‘get_posts()’ same as ‘wp_get_recent_posts()’?
- How to give priority to page than to posts permalink structure?
- Hide Admin posts & pages in Dashboard
- structure of posts and pages
- Display only current page -> posts tags in page
- Call posts of particular category in a page
- Add wp-link-pages to post
- How to arrange different post categories in template
- How to mix pages and sub-categories in a url
- How do I paginate posts page with $wpdb?
- Make a custom URL and link to custom Template
- How to get all post titles starting with numbers and symbols?
- Bulk Attach Or Insert Media To Post Without Opening Post Editor
- How to get single post by one author?
- How to Post to Specific Pages?
- List direct children of page
- Woocommerce – custom post type of checkout page
- Posts and pages not getting published
- wordpress show category link instead of post link [closed]
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- posts_per_page – Repeats only first posts ‘post__in’ array
- Cannot Create a new Post [closed]