• Hi – new to WordPress and PHP…

    I have a custom menu that’s working fine. I need to repeat the current menu’s “navigation label” elsewhere on the page.

    Is there a way to access this?

    ‘<?php wp_nav_menu(array(‘menu’ => ‘tabs’)); ?>’

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • What do you mean by the current menu’s “navigation label”?

    Thread Starter danderson421

    (@danderson421)

    When I create the custom menu, there is a field called “Navigation Label”.

    I’ve successfully styled .current-menu-item a

    I would like to render this in an heading tag elsewhere on the page.

    So, I have a custom menu with five items in it. At any given time one of the items is the current one.

    I need this value to be in a heading tag.

    I hope that’s clear. Thanks again.

    You want the heading to use the enclosing menu class or you want it to use the current_page menu class?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_nav_menu navigation label as variable’ is closed to new replies.