Custom Menu
// Add Shortcode function custom_menu( $atts ) { // Attributes $atts = shortcode_atts( array( 'menu' => '', ), $atts ); <?php wp_nav_menu( array( 'container' => false, 'container_class' => '', 'menu' => '', 'menu_class' => 'menu', 'theme_location' => 'menu-name', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 5, 'fallback_cb' => false, ) ); ?> } add_shortcode( 'custom_menu', 'custom_menu' );