WordPress.org

Ready to get started?Download WordPress

Forums

Two dynamic menus on same page in 3.6 !? (1 post)

  1. radojica
    Member
    Posted 10 months ago #

    For some reason this doesn't work any more:

    <div id="nav-container">
    	<ul>
    	<?php wp_nav_menu(
    		array(
    			'menu' => 'Main Menu',
    			'container' => '',
    			'items_wrap' => '%3$s'
    		)
    	); ?>
    	</ul>
    
    	<ul id="main-nav-2">
    	<?php wp_nav_menu(
    		array(
    			'menu' => 'Right Menu',
    			'container' => '',
    			'items_wrap' => '%3$s'
    		)
    									); ?>
    	</ul>
    </div>

    This is from function file:

    if (function_exists('register_nav_menus')) {
            register_nav_menus (
    	        array(
    			'main_nav' => 'Main Menu',
    			'right_nav' => 'Right Menu'
    		)
    	);
    }

    I set two different menus in admin panel and selected which one I want to use where.
    But only last menu is printed two times !?

    Can someone help me please ?

Reply

You must log in to post.

About this Topic