The WordPress function wp_get_nav_menu_items returns my whole site's navigation nested and all. Now if i want to get the nav menu for one "level" of that nested navigation only, how do I do that?

link|improve this question

Sorry about that... – Anton Gildebrand Feb 13 at 19:52
@JonathanS. - please just flag, don't comment as well. – Kev Feb 13 at 22:56
Hope this helps. Thanks stackoverflow.com/questions/9271584/… – Vasanthan.R.P Feb 14 at 6:05
feedback

migrated from stackoverflow.com Feb 13 at 22:56

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

Are you trying to display the posts from the top down a certain number of levels?

If so, use wp_nav_menu. It has an argument "depth" built just for this and it works painelssly.

wp_nav_menu(array('depth' => 2));

Also, http://codex.wordpress.org/Function_Reference/wp_nav_menu

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.