• Hi,

    Having a problem with wordpress 3.0.1 and using menus in my theme, version 3.0 seems to work perfectly but in the latest I’m getting 2 bugs:

    – I have set up a custom spot for a menu in my theme using the code:

    <?php wp_nav_menu( array(‘menu’ => ‘header-nav’, ‘container_class’=>’head-nav’, ‘menu_class’=>’head-nav-links’, ‘container_id’=>false, ‘menu_id’=>false)); ?>

    and defined it in the functions file with:

    if ( function_exists( ‘register_nav_menus’ ) ) {
    register_nav_menu(‘header-nav’, __(‘Top Navigation Bar’));
    }

    In the menus page in the admin it’s telling me my theme supports 1 menu, however when I create a menu and set it to use this new menu (I made a menu named ‘Top Navigation Menu’ with a few custom links) it instead of showing this new menu always shows the first menu I’ve created in the spot. (I have 2 menu’s created, one named links and one named top navigation menu and no matter what I set the ‘top navigation bar’ to it always shows links.

    This could be because I was developing another theme using this install before and had set up menus for it then switched to this new theme… could that have broken something?

    Bug #2

    I can’t seem to delete menus, if I click the delete button the confirm pops up, I click ok and nothing happens.

    Cheers, Tim

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

    (@mtgcs2000)

    Just had a bit more experimentation on a blog (on a different server) that had menus from 3.0 and I upgraded it to 3.0.1 and now I can’t change the menus.

    It has 2 menus that were both working before and I could change what menu was used fine.

    However today I upgraded, added a new menu called test with a test element and tried changing both of the menu positions to use this new test menu and neither of them changed.

    So I think the problem is not that it is always using the default menu, but that the menu’s seem to no longer change.

    I can even edit the old menu’s that should not be showing anymore and add new elements and it will show the new elements on the page.

    Thread Starter mtgcs2000

    (@mtgcs2000)

    EDIT: My Mistake thought hte code was doing something funny but appears to be fine, still trying to find source of bug.

    Thread Starter mtgcs2000

    (@mtgcs2000)

    Ah Finally figured it out!

    It was because I didn’t specify theme_location so it ignored that locations thing, why doesn’t it make theme_location the same as the ‘menu’ parameter by default? ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menus Bugs (Can't set or delete)’ is closed to new replies.