• Resolved seforoth

    (@seforoth)


    Hi everyone,

    Ran into a rather bewildering issue whereby any custom menu apart from the primary menu isn’t showing at all. I’ve even tried adding a secondary menu to the Twenty Twelve theme as well just to make sure it’s not my theme playing up or something without any luck as well. I even downloaded and setup a fresh copy of WordPress just to make absolutely sure there is no funny business going on and once again it didn’t work… am I going crazy or are additional menus no longer possible with 3.7.1?

    Here is my code that I’ve tried:

    Functions.php

    function twentytwelve_setup() {
    	load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' );
    	add_editor_style();
    	add_theme_support( 'automatic-feed-links' );
    	add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );
    
    	// This theme uses wp_nav_menu() in one location.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Menu', 'twentytwelve'),
    		'secondary' => __( 'Secondary Menu', 'twentytwelve')
    	) );
    
    	add_theme_support( 'custom-background', array(
    		'default-color' => 'e6e6e6',
    	) );
    
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 624, 9999 );
    }
    add_action( 'after_setup_theme', 'twentytwelve_setup' );

    Header.php

    <nav id="footer-navigation" class="main-navigation" role="navigation">
    	<?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_class' => 'nav-menu' ) ); ?>
    </nav><!-- #footer-navigation -->

    Lastly, I had set my secondary menu with the appropriate theme location in Appearance>Menus.

    Thank you very much for any help or point in the right direction.

    Edit:

    Well this is interesting, apparently the primary menu doesn’t work either when you set fallback_cb to false in the header in the Twenty Twelve theme. I’ve set my Main Menu as the Primary Menu theme location in Appearance>Menus but it still comes out with nothing.

    Is there a bug going around with the latest WordPress and the menu system?

Viewing 1 replies (of 1 total)
  • Thread Starter seforoth

    (@seforoth)

    After much digging around I think I finally found the root of the issue and the culprit was a rogue plugin.

Viewing 1 replies (of 1 total)

The topic ‘Secondary Menu refuses to show’ is closed to new replies.