Opened 3 years ago
get_pages() with child_of forgets sort
|Reported by:||janfabry||Owned by:|
If you call get_pages() with both the child_of and sort_column, the sorting is not applied.
child_of makes it select all pages (sorted) and later applies a subselect via get_page_children(). This subselect can mess up the sort order.
An example was reported on http://wordpress.stackexchange.com/questions/16921/get-pages-not-ordering-as-it-should