Yes, You can easily switch menus using conditional tags.
For example If you want to show different menu for logged in user and non-logged in user then It may be like:
<?php
if ( is_user_logged_in() ) {
wp_nav_menu( array( 'theme_location' => 'logged-in-menu' ) );
} else {
wp_nav_menu( array( 'theme_location' => 'logged-out-menu' ) );
}
?>
Related Posts:
- Programmatically add a Navigation menu and menu items
- Add ‘has_children’ class to parent li when modifying Walker_Nav_Menu
- How to add a Custom Link to a Menu with a URL that is relative to the blog URL
- WordPress default menu in database
- How to count nav menu items?
- Pulling Featured Images in to a WordPress Menu
- wp_nav_menu always falls back to a menu
- wp_get_nav_menu_items how to exclude sub level menu items?
- Add custom attributes to menu items without plugin
- How to drag multiple menu items at once in WordPress?
- Customizing the a tag with Semantic UI
- wp_nav_menu() customized
- wp_get_nav_menu_items order doesn’t work
- child theme automatically adds new page to top menu instead of only custom menu
- Hide pages depending on role
- how to only add a top-level admin menu without it creating a sub-level-menu
- wp_nav_menu – page template name as item class
- `start_el` depth argument in custom nav walker always evaluates to zero
- WordPress Split Menu
- Strange behavor of wp_nav_menu by not appearing [closed]
- Keep parent page active
- Subpages in Menu Editor not Nesting
- Custom Admin Menu Order
- How to set classname for tag in wordpress menu?
- bootstrap-navwalker will not load
- Check if menu id = $specific_id – then insert specific
- Menu / div of year and months of blog posts?
- How to replace the page url for the page slug in a menu link?
- How to insert link to the default post archive into a menu
- Add css class to dropdown
- create a 2 row menu in wordpress
- Get menu item by name or slug
- current-menu-item class is not added
- Change sub-menu contents of main menu
- wp_nav_menu add class to child item with sub child
- How to remove menu installed in wp-admin by a theme? [closed]
- creating a custom walker class
- How to modify wp-includes without messing my wordpress installation?
- Add Buddypress profile and messages link to WordPress menu [closed]
- Use wp_logout_url() in menu creation page
- Active Menu Highlighter with Subpages?
- How to change menu structure?
- Insert a div class inside wordpress menu
- Retrieve Menu name for nav_menu_item
- Wrapping link and .sub-menu with wp_nav_menu
- Bootstrap button menu on wordpress
- Want to add different text after each menu item
- How to create a menu item which is not a page
- How to make wordpress nav menu use post custom meta data
- Is it possible to make the heading on a page different text to the text of the menu item?
- How to Structure Pages and Subpages
- Add extra menu to theme
- How to list only root pages?
- Add custom path to url to specific pages
- CTA button that is only visible to some of my users
- Search if menu item has child in wp_get_nav_menu_items hook
- add another html tag after li element in wp_nav_menu
- How to customize navigation menu in theme which is converted from pure html theme
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- WP nav menu + Bootstrap, add role=”menu” to UL
- Custom HTML output for registered navigation
- how to set the link in wordpress such that on clicking it doesn’t open another page but go to the bottom of same page
- custom walker class for own menu?
- 2 item in a same menu pointing to 1 page
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- New wp menu menu styling
- (Mobile) Hamburger menu disappeared from a page (only one)
- How do I make it so a post only shows in its category archive but not the home page?
- Hiding menu on specific pages
- Bootstrap Menu bar shows up a toggle in Desktop Mode
- Mobile menu displays submenus on top of parent. Need it to display right below on an own line
- For a menu custom link (without a link) a “#” is appended. Can this just be blank, i.e. NO link?
- sidebar navigation problem with child pages not all display.?
- How to point menu to my homepage
- save_post() on Menu Save
- code to add an extra selection to the menu editor
- Highlight inner post menu current item
- update_post_meta breaking wp_update_nav_menu_item
- Menu dropdown disapears behind slider
- Generate Submenu based on Parent Page using If Statement
- Building a menu from a large number of pages?
- how to change single post link
- Any simple way to show 10 previous pages by id to current page in links as a menu
- Vertical Menu items shifting to same line when window size increased [closed]
- Pass $item->description to start_lvl
- Menu on responsive twentytwelve theme not working, strange url error
- How do I remove a menu from a theme?
- Access CSS Classes specified in Menu options
- Query for menus in backend (BE)
- How to output the menue structured for tabbed navigation?
- Add more levels to menu
- Custom Menu based off custom header
- WordPress Navigation
- Showing Custom Menus in the sidebar
- Adding an additional menu in WordPress
- Making current_page_item work with wp_list_pages in sidebar on post pages
- how to mage the submenu open on wordpress active page
- my theme automatically adds new pages to menu
- Add a page to a subscribers account