WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Dynamic menu (2 posts)

  1. pankipan4e
    Member
    Posted 3 years ago #

    How to make the main menu change dynamically according to some logic? Example:
    If page_1 is shown,the menu should be (menu_1, menu_2, menu_3, menu_4, menu_5)

    If page_2 is shown,the menu should be (menu_1, menu_2, menu_6, menu_7, menu_5)

    If page_3 is shown,the menu should be (menu_1, menu_2, menu_8, menu_9, menu_5)
    Basically, some menu buttons should be visible all the time, and some should change.
    Maybe somehow with the Appearance-->Menus? Because I need 4 different menus, I was thinking maybe creating 4 custom menus and choose which one to show when.

  2. pankipan4e
    Member
    Posted 3 years ago #

    Solved this on my own :) Created few custom menus and then called them with the wp_nav_menu() function when I needed them :)

Topic Closed

This topic has been closed to new replies.

About this Topic