movieprodw
asked on
wordpress menu order
Hello,
I have the following code and I was wondering if it was possible to order by menu_order instead of alphabetically.
I have the following code and I was wondering if it was possible to order by menu_order instead of alphabetically.
$pages_data=get_pages(array('child_of'=>$item->object_id));
if ($pages_data) {
$item_output .= '<div class="drop"><div class="holder"><ul>';
foreach($pages_data as $page){
$item_output .= '<li class="" id="menu-item-'.$page->ID.'"><a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a></li>';
}
$item_output .= '</ul></div></div>';
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER