Posted By

dan_hoerr on 07/14/11


Tagged

menu wordpress


Versions (?)

Merging Two Menus into one UL in Wordpress


 / Published in: PHP
 

Pulls in 'main-navigation' and 'social-navigation' menus into a single UL. the key is items_wrap => %3$s

  1. <nav id="main_navigation">
  2. <ul>
  3. <?php wp_nav_menu( array( 'theme_location' => 'main-navigation', 'container' => '', 'container_id' => 'main_navigation', 'items_wrap' => '%3$s' ) ); ?>
  4. <?php wp_nav_menu( array( 'theme_location' => 'social-navigation', 'container' => '', 'container_id' => 'social_navigation', 'items_wrap' => '%3$s' ) ); ?>
  5. </ul>
  6. </nav>

Report this snippet  

You need to login to post a comment.