I have the same problem, it broke a few of my clients’ sites. I backed up a week ago when I upgraded the sites to 3.7, but I didn’t notice this problem until now, so restoring would cause us to lose a lot of data.
This is a pretty serious bug! Has anyone found a workaround?
This is the code that used to work, but is now NOT returning the files in hierarchical order:
$args = array(
‘sort_order’ => ‘ASC’,
‘sort_column’ => ‘menu_order’,
‘hierarchical’ => 1
);
$pages = get_pages($args);
Basically, I get the same results whether I pass the hierarchical parameter or not.
Here’s mine (almost the same)
$args = array(
'sort_order' => 'ASC',
'sort_column' => 'menu_order',
'hierarchical' => 1,
'post_type' => 'page',
'post_status' => 'publish'
);
$the_pages = get_pages($args);
Glad I’m not the only-one but now we need a fix 😉
Everything has been working for years but since the last update the trouble starts. This is very common functionality I think, strange that there is nothing to be found on this.
Hee jeromeramone,
Just did a upgrade to 3.7.1 and now its working again!
Regards, Niels
Me too – thanks for taking care of that so fast, WordPress!