How to change the position of menu item?

Ubermenu is great, but probably unnecessary if this is all you’re trying to do. There are a ton of different ways to do this. Here’s a couple: 1) Custom Walker <?php // custom walker targeting products menu class productMenu extends Walker_Nav_Menu { function end_el(&$output, $item, $depth=0, $args=array()) { if( ‘Products’ == $item->title ){ // PRODUCT … Read more

echo menu_order value in my theme

You can’t use get_post_meta since the menu_order is stored in the posts table, like you said. But you can set up an easy database query to get the value. $menu_o = $wpdb->get_var( “SELECT menu_order FROM $wpdb->posts WHERE ID=” . $post->ID ); echo $menu_o;

New page does not get a menu_order

Why this is happening The default menu_order is 0, so unless you manually change this any new Page/Post inserted in to your DB will correctly have this menu_order set. You can set the menu_order for any Page via Quick Edit as below (or indeed the Edit Page screen if you wish) – By default, Post … Read more