You can register multiple menus, and display one of them depending on the context.
register_nav_menus( array(
'primary' => 'Regular',
'blog' => 'Blog',
) );
Then in your theme, you select the menu you want:
wp_nav_menu( array(
'theme_location' => (is_page() ? 'primary' : 'blog'),
'menu_id' => 'nav'
) );
Related Posts:
- Sitemap Page build from Menu?
- How can I create a navigation menu in the sidebar that can also act like a slider?
- Dynamically exclude menu items from wp_nav_menu
- Recommendations for a LaTeX Plugin? [closed]
- Limiting sessions to one IP at a time
- Analytics plugins that allow for inclusion of _trackPageLoadTime()?
- Add custom attributes to menu items without plugin
- How to have “Page Title” different than “Menu Title” in wordpress 3.0.3?
- Breadcrumbs showing Parent and Child Pages
- Plugin for event management? [closed]
- Add Page ID class to nav menu items
- How to add a category or tag to media at upload time with the browser uploader?
- System audit plugin? [closed]
- Non-Linear Questionnaires in WordPress
- The holy grail of Event Management Plugins? [closed]
- WordPress plugin for scheduling appointments [closed]
- Displaying wp menus by name without using theme locations
- Generate a tabbed submenu — from taxonomy term or submenu item — with sample content
- how to automatically generate hierarchical menus from hierarchy of pages?
- add a woocommerce shop to every buddypress user [closed]
- How to make Tag Aliases
- Add sidebars to navigation menu?
- How to make menu items active based on hash
- Tag system like Quora?
- Plugin to turn off RTE on select page [closed]
- How to insert custom code into wp_nav_menu structure?
- items_wrap not working
- How to add pagination with page numbers rather than next/previous links?
- Remove li from wp_nav_menu
- Google maps plugin [closed]
- Adding post excerpt into navigation menu
- Check if menu id = $specific_id – then insert specific
- Coupon codes and wordress; Membership plugin, tertiary plugin or shopping cart? [closed]
- WordPress is adding margins and padding to my custom menu?
- Programmatically (PHP) get the nr. of items in the primary navigation menu
- Using a page as home, how do I prevent nav from setting both home and page links active?
- Making Comments Editable?
- Let users share posts via Twitter?
- How do I add recent posts to the menu?
- Conditional secondary menus
- How to create a submenu that will navigate through different posts in the same page
- current-menu-item class is not added
- Automatically list top level menu item child pages
- Check if menu_item has children or has parent
- Please tell me any free customize product designer plugin (like customize tshirt, mobile cover, mug etc.) . [closed]
- Categories as main menu items and subcategories as nested lists
- wp_page_menu not working right?
- Plugin for loading comments on-demand [closed]
- How do I access the menus produced by Dashboard > Appearance > Menus
- How to get rid of the home link in nav menu?
- Is it possible to add a dynamic link in the main navigation in a child theme
- display menu as table layout
- Creative Clans Embed Script plugin equivalent? [closed]
- How to make wordpress nav menu use post custom meta data
- PHPlist & new posts notification?
- retrieves menu and converts it to a readable array
- add another html tag after li element in wp_nav_menu
- Position a hard-coded menu item
- How to get main menu only with wp_nav_menu
- Why can’t I add a custom image in my navigation?
- How to add a menu that belongs to parent blog to all child-blogs?
- Easy (no code) way to open a form in a lightbox (a plugin?) [closed]
- Simple webshop-plugin? [closed]
- unautomated subscription plugin [closed]
- Photo comment plugin [closed]
- Plugin Needed (User Register – have own profile) [closed]
- Looking for a simple e-commerce plugin [closed]
- Trouble highlighting correct menu parent with wp_nav_menu classes while viewing “single posts”
- Send email on new comment when no admin approval needed?
- How to change how WordPress renders navigation menu on Block Themes
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- Bizarre Child Menu Issue on WP Site
- Is it all right to put the whole tag into template_part file?
- Current menu item highlights wrong
- wp_nav_menu container style args
- Misleading behaviour on Menu & Theme location
- Adding additional html to the end of the root level in a custom nav walker
- remove or hide Link Relationship (XFN) form Menus tab
- omit categories from main navigation menu
- Building a menu from a large number of pages?
- Need help with adding custom wordpress menu and sub-menu
- wp_nav_menu doesn’t seem to work on custom post type pages
- How to select particular menu position in wordpress?
- Links in new menu don’t work
- Add dynamic content block to nav section generated by custom walker
- Next/previous a-like single navigation
- How to output the menue structured for tabbed navigation?
- Replace Menu Item with Logged in username
- Walker for menus
- WordPress Navigation
- Nav Menu Display
- Plugin to Link Posts by Title [closed]
- Best Shopping Cart for WordPress [closed]
- Navigation list not correctly styled on pages with custom template (missing .current-menu-item)
- Any Good Analytics Plugins for WordPress? (standalone)
- Redirect user on second visit on page
- Display sub menus as separate lists
- how can i get the page_ID in nav li [closed]
- How do i add logo in wordpress studiopress (glam theme)?
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0