Support » Plugins » [Plugin: wp-menu] nav_levels

  • I think I’m reading this right:

    **nav_levels** = options (int): 0 = all / 1+ = stop after level X {default = 0}

    Here is my call:

    wp_menu(‘nav_type=single_secondary&nav_levels=1+&nav_tag=ul&nav_id=nav&active=item&active_class=current’); ?>

    With nav_levels set to 1+ the menus should only open to one level above current? So if this is the hierarchy:

    Page 1
    page 1a
    page 1b
    Page 2

    And I am on “Page 1” then “Page 1a” should show but NOT “Page 1b”

    Then when on “Page 1a” “Page 1b” should show.

    It is not working that way. When on “Page 1” both “Page 1a & 1b” show.

  • The topic ‘[Plugin: wp-menu] nav_levels’ is closed to new replies.