you can put this code in your functions
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus(
array(
'menu-1' => __( 'Head' )
)
);
}
and this code, in the place you want your second menu
<?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?>
and than, you can control your new menu, through the menu section in the admin panel
Related Posts:
- Register/Get sidebar?
- Add #sidebar-2 to a custom page template
- Custom page sidebar using Template dropdown box
- Custom page template to sidebar/widget
- Content not showing up when using custom template + sidebar
- different sidebars depending on template (is_page_template is not working)
- E-Commerce Products Page Sidebar Formatting
- Get list of all registered sidebars
- List all sidebar names?
- What does is_page_template() compare against?
- Creating custom blog page template the right way
- How To Create A Paginated List Of All Categories On My Site?
- How to edit contents of dynamic_sidebar()?
- is_page_template not working
- When is get_template_part() preferable to simply using the template.php files?
- How to remove all styles for certain page template?
- HowTo: Add Class to Sidebar Widget List-Items
- Having different sidebar content for MANY pages?
- How to wrap the widget content with a div or get the widget title outside?
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget
- Password protected posts redirects
- Variable use in get_template_part
- Overriding page template using page_template filter
- dynamic_sidebar not rendering sidebar
- Simplest way to add a second html editor to the post/page admin?
- Get custom side bar on custom post archive page
- How to consolidate multiple static page templates into one dynamic one?
- Loading page content into a variable in template
- Add div class to only one widget
- How to get the name and description of a sidebar in theme?
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- Dynamically assign same page template to child page as parent
- How to avoid widgets added to sidebar on theme activation?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- What content should go in index.php?
- Store Page Template Files in a Subfolder
- How to show a post single post in page template
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- Create a new template for twentytwelve
- get url page template
- Posts archive index pagination in a static page custom query
- How the WordPress sidebar works
- Custom sidebar not showing in the dashboard
- Different “Text Widgets” in Sidebar on Many Different Pages?
- Video Background – (php & css) – generating 404 error on page load – WordPress Theme File Structure Help
- How to remove a parent theme template from Quick Edit?
- How to Set a Custom Template for Blog Posts
- Sidebar Generator? :)
- is_page_template & is_page in functions.php not working
- Removing or Restricting Access to Page Templates for Editor Role
- Created custom post type but selected template not staying selected
- Why is POST’ing to my WP page template producing a 404?
- get page title, url and excerpt of a page
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Are page/post IDs unique across a whole network?
- Custom template for each page
- Theme’s page.php and index.php template files are confusing me
- Grabbing the page template name?
- How can I have a static title on my blog page?
- Adding the Admin Bar to a page with a custom template
- Use is_category(), is_tag(), … in functions.php
- wp_title() handling of author page
- Can you call a template file without assigning template to a page in the admin panel?
- page-slug goes to not found
- Registering multiple sidebars with data from an array
- Why am I getting syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in this template? [closed]
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How do I add a body class to specific pages?
- More flexible sidebar and widget management
- WordPress widget new instance creates content duplicates
- How to edit 404 content via wp editor?
- How to list all titles of posts on a specific page?
- How to handle a missing page.php?
- duplicate sidebar
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Programatically switch page template?
- Removing custom widget area WordPress 4.4 [closed]
- Insert Widget option into mark-up with register_sidebar
- Full width layout for custom post type pages
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- wp_redirect() does not work in custom template file
- Remove all theme CSS & JS from wp_head (but only for 1 page template)
- Get page id of current page from template [duplicate]
- is_page_template returning false
- remove page template from dropdown?
- Export csv and force download in template page
- WPML in custom page templates
- Programatically changing template of a page
- Why (and how?) is get_header() erasing all my stuff?
- How can you add a link to a sidebar description?
- get_pages — parent vs child_of?
- Cannot save widgets in custom sidebars
- unregister_sidebar() in stand-alone theme not working
- WordPress can’t find IXR_Client
- WordPress widget/sidebar dividers?
- Display a specific dynamic sidebar widgets on a specific page
- adding multiple sidebars on pages