0

how i can place menu item slug on before items like this:

 wp_nav_menu(array(
    "theme_location" => "mymenu",
    "menu_class"     => "mymenu",
    "before_item" => "<span>$item->slug<span>",
   ));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.