How to display menu in WordPress?

After registering your menus, use wp_nav_menu() to inform your theme where to display your menus. You can add this code to a header.php file for displaying the registered header-menu:
wp_nav_menu( array( 'theme_location' => 'header-menu' ) );

Suggest An Answer

No suggestions avaliable!

Latest post from WordPress Interview Questions

Ask Question