Forums

[resolved] Display wp_nav_menu subitems (2 posts)

  1. ferenyl
    Member
    Posted 7 months ago #

    Hi
    I have a wp_nav_menu thats displaying pages as top menus and then custom menu items as submenu items.

    I want to use the same wp_nav_menu to display subpages in the template file.

    like this:
    HOME | CALENDAR (active) | BOOKS
    submenu:
    EVENTS | SIGN UP | CREATE YOUR OWN EVENT

    When the user is visiting CALENDAR the submenu the submenu should be displayed on i different place in the template file and not in the same call as the menu above:
    CALENDAR (title)
    EVENTS
    SIGNUP
    CREATE YOUR OWN EVENT

    Hope somebody can help.

  2. ferenyl
    Member
    Posted 7 months ago #

    I have a solution:

    [65 lines of code moderated as per the Forum Rules. Please use the pastebin]

    its ugly but it does what i want.

    Anybody have a better idea?

Reply

You must log in to post.

About this Topic