I'm using the following function that I found online to render each page's individual nav items to the page:
function print_menu_shortcode($atts, $content = null) {
extract(
shortcode_atts(
array(
'name' => null,
'class' => null
),
$atts
)
);
return wp_nav_menu(
array(
'menu' => $name,
'menu_class' => $class,
'echo' => false
)
);
}
I would like to display these nav links in a dropdown menu with a button labeled Menu instead of just having the links render as an ul, but I don't know how to access the individual items within wp_nav_menu.
Any help would be the best, thanks!