• Resolved ashtonej

    (@ashtonej)


    I put

    add_filter( ‘be_subpages_widget_args’, ‘be_subpages_menu_order’ );

    function be_subpages_menu_order( $args ) {
    $args[‘sort_column’] = ‘menu_order’;
    return $args;
    }

    In my 2014 theme’s function.php file

    The entries are not appearing in the same order as the menu.

    Is there anything else I can do to get the submenu items in the right order?

    Thanks,

    Jim

    https://wordpress.org/plugins/be-subpages-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ashtonej

    (@ashtonej)

    Not sure if it was just me being thick but I got it to work.

    I put numbers in the ORDER field on each child page.

    Is this what menu_order is? because when I added the child pages into the actual site menu, the order was not picked up.

    Thanks,

    Jim

    Plugin Author Bill Erickson

    (@billerickson)

    Correct, ‘menu_order’ refers to the page order of the actual pages, which you can control in the “Page Attributes” box when editing a page. It doesn’t have anything to do with custom menus you have created.

    This is poorly named in WordPress core, which is why it is poorly named here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘not recognising menu_order’ is closed to new replies.