How Do I Create Multiple Menus in WordPress?

Creating multiple menus in WordPress is a simple process. First, create a new file in your themes directory called functions.

php. Inside of this file, add the following code:.

function my_menu() { register_nav_menus( array( ‘primary’ => ‘Primary Menu’, ), ); }

Next, you need to add a line to the WordPress core settings file called wp-config.php. Inside of this file, add the following line:

define(‘MENU_NAME’, ‘Primary Menu’);

Finally, you need to create a new menu in your WordPress admin area. To do this, go to Appearance -> Menus and click on the newly created Primary Menu.

You will now see the newly created function my_menu() inside of it.