That's it, I use the following code to get all the specific Wordpress created menus:
$menus = wp_get_nav_menus();
I know the identifier of the menu I want to use. Based on the menu identifier, I would like to get the pages that are in this menu, and the corresponding navigation inscription based on the selected menu identifier. How can i do this?
I really discovered this:
$menu_items = wp_get_nav_menu_items($options['menu_choice']);
In this example, $ options ['menu_choice'] is the selected menu identifier, but what I really need is to give the value of the permalink. Can I get this from this?
Thanks for any help in advance!
source share