the simplest way would be to create two menus on for admin and one for everyone else
and display them based on that:
if (current_user_can('add_users')){
wp_nav_menu( array('menu' => 'My Admin Menu' ));
}else{
wp_nav_menu( array('menu' => 'My Users Menu' ));
}
Related Posts:
- changing the labels inside appearance -> menus for some for the fields
- Costum walker with sub menu item count
- How to add a menu that belongs to parent blog to all child-blogs?
- Blending Foundation’s Tabs with WordPress Nav Menu & Display Active Tab
- How to create menu spread over four lines including images
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- Updated WordPress, now Navigation is Messed Up
- Editing the nav menu?
- Additional navigation bar in header
- How to change how WordPress renders navigation menu on Block Themes
- Problem with links once in portfolio item
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Possible to append class to nav menu added to widget area?
- WP Menu Rollover Nav Item and Effect DIV Elsewhere
- need help in wordpress navbar setup
- Help with WordPress Custom Nav Walker
- Why is my navigation in my onepage not working?
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- Navigation item – current date in url
- Add Different Class on Different Ul in twenty-twentyone theme
- Get Each Menu Nav Label of Menus in HTML tag
- Bizarre Child Menu Issue on WP Site
- Hide a menu (navigation bar) on all posts
- Nav Menu: Theme Location not working
- Is it all right to put the whole tag into template_part file?
- How to remove empty line space in navigation menu?
- How to change the navigation menu
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- wp_nav_menu container style args
- Add/remove image from navigation bar
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- Misleading behaviour on Menu & Theme location
- Bootstrap Theme Migrated to WordPress
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- WordPress nav_menu items from another menu appearing
- How can I click the parent menu then redirect to a special URL?
- How do I display menu in header without loosing styles?
- How to automatically add counted number to navigation menu items?
- What is inside in $item in start_el function in Walker_Nav_Menu class
- Multi-Level Nav Bar
- Adding additional html to the end of the root level in a custom nav walker
- How can I order these pages in this navigation bar on this old wordpress theme?
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- WordPress Menu Navigation links not working
- Change markup for just 2nd list element in custom Walker menu
- Bootstrap Nav Walker Sub Menu Image
- Creating navigation out of specific IDs and their children?
- Where to place a svg chevron down in my custom walker?
- How to apply individual menu item’s “CSS Classes” to , not ?
- Additional CSS for the nav menu
- Add href to tag in nav menu for mobile
- Add active class to wp_nav_menu
- Output existing wp_nav_menu with a custom walker
- Navigation bar is on live site but nothing under menu so can’t add in a page
- Disable Top Nav Bar on Mobile
- how to split vertical menu into two columns using walker nav menu
- Sub-Items Not Visible in Navigation
- display cart information within li of cart menu item
- How can I create this menu with wp_nav_menu()?
- Building a menu from a large number of pages?
- Unable to remove page from primary menu
- How to add widget in main menu
- how to configure this type of menu
- Show thumbnail to category items in wp_nav_menu(), how?
- Add data-track to links in menu
- How to select particular menu position in wordpress?
- Header lists posts instead of showing primary nav menu
- Show navigation header menu by post and categery
- Links in new menu don’t work
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Add newsletter signup element to navigation bar
- How to Use Default Auto-Generated Menu?
- wp-nav menu with custom walker , how to remove a tag if it has any submenu
- Programmatically add a Navigation menu and menu items
- Menu Details Output in Javascript [closed]
- Site-wide tabs at WordPress website?
- Custom location for menu
- Creating custom Menu for custom theme
- Check in walker if current page is descendant
- How to add class and span to
- wp_nav_menu not selecting teh correct menu
- Calling the first & last post by category in custom post type
- Show Child of Parent Page including all other parents
- Can’t add optional class to menu item when using Walker_Nav_Menu
- Active page link not getting class assigned
- Add dynamic content block to nav section generated by custom walker
- Highlighting Main Navigation Menu With Two or More Class Matches
- Next/previous a-like single navigation
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- Customize Walker_nav_menu to show posts if item is category
- wp_nav_menu() reutrns HTTPS?
- Menu not always using correct link
- How to output the menue structured for tabbed navigation?
- Replace Menu Item with Logged in username
- Where these arguments are defined?
- Show only second level menu items? [duplicate]