How do I get the menu items (depth = 1) into an array?
wp_nav_menu outputs a formatted list with both ul and li elements. wp_list_pages also outputs a formatted list with both ul and li.
I just want to get the menu items (striped of tags) of depth one into an array.
How do I accomplish this?
Thanks @Libin
Figured out wp_get_nav_menu_items()
here i am getting the whole menu items
I fount one example here http://wiki.workassis.com/wordpress-get-menu-array/
I think this will helps you: wp get nav menu items