wordpress display menu by name 1

wordpress display menu by name

wp_nav_menu( array( 'menu' => 'name' ) );

Here is what the above code is Doing:
1. It’s creating a new array called $args.
2. It’s telling WordPress to use the menu called ‘name’ (which is the name of the menu you created in the previous step).
3. It’s telling WordPress to use the wp_nav_menu() function to display the menu.

Similar Posts