I am new in WordPress Development. How can I get Menus in Admin Panel like below ?

enter image description here

I am trying to develop a theme. But I couldn't display that.

enter image description here

2 Answers 2


You need to register custom menus in your theme - https://codex.wordpress.org/Function_Reference/register_nav_menu

You first need to register your menu in functions.php like so:

add_action( 'after_setup_theme', 'register_my_menu' );
function register_my_menu() {
  register_nav_menu( 'primary', __( 'Primary Menu', 'theme-slug' ) );

Then, where you want your menu to appear - usually header.php - you call the function:


You can refer to this link for more information.

Basically, for Menus to show up, you need to use the WordPress function register_nav_menu() to register that your theme supports at least 1 menu. Each registered menu corresponds to a checkbox under the Display location (which is under the Menu Settings header) section at the bottom of the Menu page.

Display location menus

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.