Advertisement
lion_neel

Function_Reference/ wp_nav_menu

Jun 15th, 2013
3,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Registering in functions.php
  2. ==================================*/
  3.  
  4. /*For Single Menu*/
  5.  
  6.  
  7. /*Ends # For Single Menu*/
  8.  
  9. /*For Multiple Menus*/
  10.  
  11.  
  12. /*Ends # For Multiple Menus*/
  13.  
  14. /* Displaying The Menu on Theme
  15. ================================= */
  16.  
  17. /*For Single Menu*/
  18.  
  19. <div class="access">
  20.   <?php wp_nav_menu(); ?>
  21. </div>
  22.  
  23. /*Ends # Single Menu*/
  24.  
  25. /*For Multiple Menus*/
  26.  
  27. Targeting a specific Menu
  28.  
  29. <?php wp_nav_menu( array('menu' => 'Project Nav' )); ?>
  30.  
  31. /*Ends Targeting a specific Menu For Multiple Menus*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement