Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Nav Menu shortcode

// Add Shortcode
function insert_menu_shortcode( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'name' => '',
			'walker' => '',
			'themeLocation' => '',
		),
		$atts,
		'menu'
	);

	return wp_nav_menu( array( 'theme_location' => $atts['themeLocation'], 'menu_id' => $atts['name'], 'walker' => $atts['walker'], 'echo' => false ) );

}
add_shortcode( 'menu', 'insert_menu_shortcode' );