Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?
$navigation_relation = array();
$navitems = wp_get_nav_menu_items('your-nav');
foreach ($navitems as $navobject)
$navigation_relation[$navobject->ID] = $navobject->object_id;
print_r($navigation_relation);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.