[resolved] wp_nav_menu do not output href attributes (1 post)

  1. Julien
    Posted 2 years ago #

    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 :

        '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 ?

Topic Closed

This topic has been closed to new replies.

About this Topic