• I have set up a new install of WordPress both locally and on a web server. I registered 2 new menus yet they don’t display in Appearance → Menus. Here is the code I used:

    function register_the_menus() {
    	register_nav_menus(
    		array(
    			'top-menu' => __('Top Menu'),
    			'main-menu' => __('Main Menu')
    		)
    	);
    }
    
    add_action('init', 'register_the_menus');

    At first I thought it was my code but that is almost identical to codex. So what I did was I activated the Twenty Ten theme and it did not work either. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter seagyn

    (@seags)

    Any help with this.

    I can’t get any custom menus working even on a brand new install locally and online. The arguments for wp_nav_menu are not working either. Sounds like a royal F up to me.

    Thread Starter seagyn

    (@seags)

    I am even trying this:

    add_action('after_setup_theme', 'register_custom_menus');
    
    function register_custom_menus() {
        register_nav_menus(array(
            'main' => __('Main Menu')
        ));
    }
    Thread Starter seagyn

    (@seags)

    OMG. Fail. Ok so I realised that it was doing it but it does not create the menu it just creates the position.

    Is there anyway to create a menu so that all you have to do is add pages/categories/links?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot view theme registered menus’ is closed to new replies.