How to Register a New Menu in WordPress

Prem Tiwari - - WordPress, WordPress Snippets

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.

About: Prem Tiwari

Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.