Skip to content

Instantly share code, notes, and snippets.

@tacensi
Created March 12, 2018 18:55
Show Gist options
  • Save tacensi/1f9f5e37827c78ebeef0ceeb6a09e108 to your computer and use it in GitHub Desktop.
Save tacensi/1f9f5e37827c78ebeef0ceeb6a09e108 to your computer and use it in GitHub Desktop.
WP Nav Menu
$args = array(
'theme_location' => 'main',
'menu' => '',
'container' => '',
'container_class' => '',
'container_id' => '',
'menu_id' => '',
'menu_class' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
wp_nav_menu( $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment