How to Register a New Menu in WordPress

This is very short WordPress tips, which will let you know how to register a new menu in WordPress. Sometimes we need to create multiple menus to display on the front-end, due to client requirements.

In this tutorial, I will share a simple code snippet to register a new menu on your WordPress site.

Open functions.php file and add the below at the end of the file and save it.

Register New Menu in WordPress

You can change the menu name as you want.

After adding the above code in your functions.php file, login to your Admin panel and navigate to the Appearance =>Menus. There you see the registered menus. See the below screenshot.

register new menu wordpress

Now you can call above menus in your theme’s or template files by using the wp_nav_menu() function. See the below example:

Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , ,