I need to list my menu in the bottom of my WordPress site without sub menu. I have tried this but this one lists menu with sub menus:
wp_nav_menu(array(
'container_class' => 'class_name',
'theme_location' => 'primary'
));
I need to list my menu in the bottom of my WordPress site without sub menu. I have tried this but this one lists menu with sub menus:
wp_nav_menu(array(
'container_class' => 'class_name',
'theme_location' => 'primary'
));
You must be logged in to post a comment.
You want to add
'depth' => 1
to that array you’re passing. See http://codex.wordpress.org/Function_Reference/wp_nav_menuThe code you used…
shows the dynamic Menus of a site.
From your admin panel “Appearance ยป Menus”, just enable a new custom menu on the Primary Menu location. And add the pages/posts on to the menu as the main menu. Don’t nest any sub menu. It’ll solve your problem.