wp_nav_menu() in WordPress 3.6 ignores parameters or am I doing something wrong?

I have this code in my templates:

<?php wp_nav_menu( array( 'container' => '' ) ); ?>

It outputs the menu but wrapped in <div class="menu">
As I understand the documentation page it should not output the .

Related posts

Leave a Reply

1 comment

  1. Ok i got it. You need to set: menu' => 'Name of the menu'
    and 'theme_location'=> 'main_menu' as well… something like:

    <?php wp_nav_menu(array('sort_column' => 'menu_order', 'menu' => 'Name of the menu',    
    'container_class' => 'main-menu2', 'container_id' => 'menu-l', 'theme_location'  => 'main- 
     menu') ); ?>
    

    Maybe someone could use this as well 🙂