Support » Plugins » Hacks » wp_nav_menu do not output href attributes

  • Resolved Julien

    (@jlambe)


    Hi everyone,

    I have a problem using the wp_nav_menu() function. It outputs everything as normally expected excepts the href attribute.

    Here is the call to the function :

    wp_nav_menu(array(
        'theme_location'  => 'frame-nav',
        'container'       => false,
        'menu_class'      => 'menu',
        'menu_id'         => 'main-nav',
        'walker'          => new Jl_Menu())
    );

    I’m using a custom walker class where i’m adding a custom data attribute.
    There are no plugins and if I don’t use the walker class it still outputs without href attribute.

    It outputs the title and my custom data attributes correctly but no href ?!

    Does anyone have an idea what’s causing this ?

  • The topic ‘wp_nav_menu do not output href attributes’ is closed to new replies.