0131 478 2702

How to add menus with a shortcode:


// Add menus with shortcode
function myshortcode_func($atts, $content = null) {
extract(shortcode_atts(array( 'menuis' => null, ), $atts));
return wp_nav_menu( array( 'menu' => $menuis, 'echo' => false ) );
}
add_shortcode( 'myshortcode', 'myshortcode_func' );

then put this shortcode in your page:
[myshortcode menuis="Name of WordPress Menu"]