Support » Alpha/Beta/RC » WordPress 3.0 wp_get_nav_menu_item() links missing

  • This is my first post here… I figured it was about time I get involved with the development where I can.

    I’m experimenting with the wp_nav_menu function and I’ve managed to enable my theme, create a menu and bring this into my theme using both a widget and manually with wp_nav_menu().

    Both resulted in the expected output but without the relevant href… this was just empty.

    I’ve manually got this working by changing line 164 in nav-menu-template.php as follows:

    $href = isset($menu_item->link) ? ' href="'. esc_url($menu_item->link) .'"' : '';

    $href = isset($menu_item->guid) ? ' href="'. esc_url($menu_item->guid) .'"' : '';

    Am I being thick or is this a genuine mistake?

    Apoligies if it’s the former 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress 3.0 wp_get_nav_menu_item() links missing’ is closed to new replies.