RevelationTravis

WordPress wp_nav_menu Array

May 2nd, 2012
3,819
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     wp_nav_menu
  3.     ( array
  4.         (
  5.         'theme_location'  => 'Top_Menu', // as defined by "register_nav_menu( 'Menu-Handle', 'Menu Label')", located in functions.php
  6.         'menu'            => '',
  7.         'container'       => 'nav', // "div" or "nav" (use "nav" for HTML5)
  8.         'container_class' => $menu,
  9.         'container_id'    => 'Menu',
  10.         'menu_class'      => '',
  11.         'menu_id'         => '',
  12.         'echo'            => true,
  13.         'fallback_cb'     => 'wp_page_menu',
  14.         'before'          => '',
  15.         'after'           => '',
  16.         'link_before'     => '',
  17.         'link_after'      => '',
  18.         'items_wrap'      => '<ul>%3$s</ul>',
  19.         'depth'           => 0,
  20.         'walker'          => ''
  21.         )
  22.     );
  23. ?>
RAW Paste Data