I am trying to order the output of one of my menus to be based off of the way they are setup in the Appearance->Menus
pane, however it seems to only want to do it alphabetically.
For example I have setup in the Menus
pane the following hierarchy:
Weekly Outlook
- Webinars
- Calendar
However it displays like so:
Weekly Outlook
- Calendar
- Webinars
I the menu is generated by the following code. Note, the content is dependant on the page visited.
<div id="dep-menu">
<?php global $post;
if (!is_front_page() && !is_404()) {
if($post->post_parent) {
$children = wp_list_pages("title_li=&include=".$post->post_parent."&echo=0&sort_column=menu_order'");
$children.= wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order'");
} else {
$children = wp_list_pages("title_li=&include=".$post->ID."&echo=0&sort_column=menu_order'");
$children.= wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&sort_column=menu_order'");
}
if ($children) { ?>
<ul>
<?php echo $children; ?>
</ul>
<?php }
}
?>
</div>
EDIT
Here it is in action: http://dailywealthreport.com.au/
The menu I am referring to is the one that comes up when you click on an item in the main menu.
wp_nav_menu
function?