Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Ok, I just made a discovery. If I hit any of my posts the navigation menus show. Now I’m very confused.

    *edit – It also doesn’t work when I’m browsing category pages.

    I am having a similar issue, except the backend doesn’t say Object ID not found. It worked for about 5 minutes, then just disappeared on me. Here is my code:

    add_action( 'init', 'register_my_menus' );
    function register_my_menus() {
    	register_nav_menus(
    		array(
    			'top-nav' => 'Top Menu',
    			'game-nav' => 'Game Menu'
    		)
    	);
    }

    And this is how I am calling the menus:

    <?php wp_nav_menu('theme_location=top-nav&container_class=top_nav'); ?>

    When I check it out through firebug I can see that the div and ul get rendered, but the menu items are missing. Anyone have any idea what may be causing this? Any help is appreciated.

    Thread Starter c0nc3pt.SF

    (@c0nc3ptsf)

    NVM, I got it. Found what I was looking for in this post and now it works fine. Found it here.

    I didn’t have the register_post_type in a function. Once I put it in a function and used add_action(‘init’, ‘function’) it worked with no issue.

Viewing 3 replies - 16 through 18 (of 18 total)