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?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
migrated from stackoverflow.com Feb 13 '12 at 22:56
|
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.
Also, http://codex.wordpress.org/Function_Reference/wp_nav_menu |
|||
|
|
|
If you want to return an array of items (not output like
|
|||
|
|