Create shortcode to insert menu into content

We need to define a shortcode, then add to function.php

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' => 'myclass', 'echo' => false ) ); 
} 
add_shortcode('menu', 'print_menu_shortcode');

Shortcode usage

[menu name="menu_name"]