I have a shortcode that will put a menu where I want it, but it only works on the primary menu. I don't want to use the shortcode for the primary menu, I would like to create a new menu called shortcodemenu and have the shortcode call it when it is used.
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 ) );
}
add_shortcode('shortcodemenu', 'print_menu_shortcode');