WordPress.org

Ready to get started?Download WordPress

Forums

wp_nav_menu () reverse order (1 post)

  1. mpjltd
    Member
    Posted 3 years ago #

    I don't know how, but why is wordpress showing my menu in reverse order ?

    functions.php

    // Menu Support aktivieren
    add_action( 'init', 'register_my_menus' );
    function register_my_menus() {
    register_nav_menus(
    array(
    'primary-menu' => __( 'Primary Menu' ),
    'secondary-menu' => __( 'Secondary Menu' ),
    'tertiary-menu' => __( 'Tertiary Menu' )
    )
    );
    }

    header.php
    <?php wp_nav_menu( array('menu' => 'Primary Menu', 'sort_column' => 'menu_order', 'container_class' => 'menu-header')); ?>

    Please help

Topic Closed

This topic has been closed to new replies.

About this Topic