If you are developing your own WordPress theme, or would like to add a menu elsewhere in your site, you may use the wp_nav_menu(); function to display a specific menu that you’ve created using its name.
Let’s say you have created a new menu called “Sample Menu”. Under that menu, you have added the pages About Us, Contact Us, and Privacy Policy. If you want to display it as a list or another navigation, copy the code below to do so:
<div class="new-nav">
<h3>Sample Menu</h3>
<?php wp_nav_menu( array( 'menu' => 'Sample Menu' ) ); ?>
</div>
The items in that menu will show in the frontend in an anchored list format. It will call the menu and will automatically bind it within an unordered list tag (<ul>) and have the links in list tags (<li>). The menu will of course be clickable too.
It will look like the image below.
Just add your own CSS stylings and that’s all!