This is indeed an error, and probably caused by the child_of argument.
Because child_of requests the whole subtree of the given page (not only the direct children, but also children of those children and so on), WordPress first queries for all the pages and then selects a subset of those pages. The first query respects the order, but the second subselection messes this up by just using array_merge().
I have created a Trac ticket for this.
Related Posts:
- How to disable page delete
- Editing the Number at the end of Page URLs / Editing Page Slugs
- Pagination Help on Crazy Custom Authors Page
- Create subpage /user/ or /my-profile/ like /author/ with additional query like /user/user123
- Hide page title in WordPress 3.0
- Selecting An image from the Media LIbrary on the frontend
- Custom protected password page with ACF
- Page load requires a trailing “/” [closed]
- Virtual Pages plugins
- Programmatically add a custom page/path/url/route to WordPress
- What is the most idiomatic way to let clients edit phrases in HTML?
- How to merge all my pages into one, while keeping a menu bar?
- How to change URL Custom Page?
- Custom column sorting in WordPress admin post table
- redirect product-category to a custom page
- custom headers for static home page and posts page
- Show posts on a page based on a category and tag(s)
- Split Conference WordPress Page in different years
- Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date
- Add google org chart to wordpress page
- How to get custom page template being edited in gutenberg editor
- Control Content On Non-Blog Pages
- custom meta box for page default template
- Best practice – pages – ACF or inline coding
- How to hook up search results page to a back-end page?
- How to structure model showcase
- How to customize
- Add a searchbox to the body of a page
- Create page as a file in my theme?
- Featured Image If Else Condition
- Rename WooCommerce sorting dropdown options [closed]
- Insert menu with a custom walker into page / post body using shortcode?
- How to create “custom page types” with different custom fields in them?
- How to create custom search page
- Creating php pages in wordpress and assigning them to wordpress pages
- How to display page ids as page slug names?
- How to create custom layouts and static pages in themes for clients
- How to make the Pages in WordPress Customized?
- Creating custom page template
- Change Site Logo or Menu Logo Per Page
- change top banner content on specific page
- How to add page content into another page
- Custom Taxonomy Sort For a Custom Query
- Display a specified content on a Page and all its child pages
- Use a custom page with dynamic content as a user profile page
- I want to embed mystream video in my wordpress site
- Swap home page based on user role, Elementor layout breaking
- Taxonomy template is not reading
- New Page/Post Screen Opens an Existing Post
- Static Page, need Last and Next links at the bottom
- How can I create a Custom Page? (not a page template!!)
- wordpress custom posts page not showing
- How to serve an already coded html page in a WP page, to assign a simpler url
- Best way to sort posts with different types by distance
- Admin menu disable new/delete page
- Show different pages on site depending on user choice
- WordPress post submit page
- Redirect Every Instance of The Author Template Pages to Custom Author Pages
- Allow arbitrary text after page URL
- Best way to create a page outside of the pages list
- Want home page to click through to two different page types
- Custom single page based on which custom page template is selected
- How to duplicate “Pages” section in the control panel?
- Page template with custom html fields inside a content
- Pass query param to custom page
- Is there a way to have information on one page automatically feed into another? [closed]
- how to add a page
- How to apply styles to the custom page template
- How can I make a search term redirect to a page
- Sort Search Results in Order of/by Character @ count (9) of post(s) title. (Ocean-WP theme)
- Custom CSS working on home page but not on NEW created PAGE
- Create a page for each database table entries
- Custom product sorting archive page
- Add a custom field for sorting the products in a specific category WOOCOMMERCE – Second try
- Add a custom field for sorting the products in a specific category WOOCOMMERCE
- How to use standalone Gutenberg (block editor) instance on any my own admin page in WordPress
- Pitfalls when Distributing Plugins that Access SOAP Web Services?
- Many users with strange names register, but don’t leave comments. Should I be afraid?
- Is there a way to rename “themes” directory name?
- in_category() works in single.php but not in page.php?
- Custom query with DECIMAL(5,2)
- Unable to display custom fields on WooCommerce product pages
- Make blog secret during design construction
- Custom attachments styling in post view
- window resizing problem
- Create membership number for existing/new users
- Blog page problems
- Installing new theme on running site
- I’d like to be able to programatically setup a site to discourage crawling by search engines
- dbDelta not creating tables with composite keys
- Divi theme: change overlay color from default blue to back [closed]
- failing to display a custom font [closed]
- Simple custom attributes on posts
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- Custom query pagination with php parameter as arg problem
- How to add a static text at end of a wordpress permalink
- Add date under slider/grid featured content
- How to customize the gallery shortcode in WordPress?
- What is Global WordPress Objects?
- Why should I keep my personal WordPress separate from my “professional” one? [closed]