You can use the function get_term_by and use ‘name’ in the field param.
<?php get_term_by( $field, $value, $taxonomy, $output, $filter ) ?>
Example:
$term = get_term_by('name', 'Social Network', 'nav_menu');
$menu_id = $term->term_id;
Here is the link to the codex page:
http://codex.wordpress.org/Function_Reference/get_term_by
Hope this helps.
Related Posts:
- Get page IDs from nav items
- Does the menu item ID ever change?
- Add id to menu items in wp_nav_menu
- getting parent page id when using custom menu.
- How to add ID attribute to each submenu?
- How to I know the class or ID of my theme?
- Output Post ID for all nav_items
- how can i get the page_ID in nav li [closed]
- how to create a menu with all sub categories?
- How to avoid wp_nav_menu() ID conflict?
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- Add custom attribute to menu item link using Filter
- Creating new dynamic menu including BP links [closed]
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- List parent item with all child item on child pages
- Output the aria-labelledby parameter for a nav menu child
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- How to remove trailing tags from wp_nav_menu walker
- Custom Walker for Walker_Nav_Menu
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- WP Nav menu append to url
- How to add a tag to wp_nav_menu in a child theme
- How can I remove data-target=”#” from bootstrap dropdown menu?
- Use wp_nav_menu to display ALL pages
- Custom dashboard menu does not stay open for the custom Taxonomy within it
- How do I hide one menu item link for logged in and logged out users [closed]
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- Menu Item Location
- get_query_var(‘post_type’) not returning in a filter
- How do I apply a class to custom menu items based on user roles
- Navigation Menus Depth for specific menus
- How do you manage large menu hierarchies in WP?
- Using Walker To Add Menu CSS Class Functionality
- Tidy nav menu classes except for edit-menu-item-classes and active class
- I need help adding a second custom menu item to the WooCommerce account area menu
- how can remove this element to avoid having two menu buttons with one that shows unnecessary pages
- How to make next and previous button based on a menu
- How to combine multiple categories in one Menu item?
- WordPress Menu Walker: add #hashes to child page links (only)
- add_filter on menu items to add a menu item
- WordPress Walker – Group two items?
- Custom Menu’s – Disable Link checkbox
- Unlimited WordPress Menu
- Using my WordPress menu on another platform
- Header and nav menu problem on Thesis site [closed]
- How to style a specific nav menu item?
- How to remove menu labels in word press?
- Add a submenu to wp_nav_menu
- Adding numbers inside a span tag in nav menu [closed]
- I’m using wp_nav_menu to display my menu, but I want one more link in there that is a hardcoded link. How can I do this?
- Automatically going to the first page in a hierarchy?
- Is there a hook for nav menu item links to add custom css programatically?
- sub menu link is not working
- Disable parent in wp_list_pages – WordPress
- Add scheduled page or post in the menu section on back-end
- Hoverable menu to appear in different sections of page
- Show Sidebar Menu Subpages When Clicking Parent
- Secondary menu in WP 4.5
- Current User In Custom Menu Item URL [closed]
- Creating other page than page.php
- Appearance > Menus > Left Sidebar > Add Toggle
- Custom menu styling
- Efficient wp mobile menu
- Echo Menu located in primary navigation
- Additional navigation bar in header
- Dynamically populate the menu when a new category is created
- Menu items not clickable
- How do you show horizontally the submenu in WordPress using the nav walker?
- Bootstrap Theme Migrated to WordPress
- How to remove top menu item and font awesome icon in WordPress menu?
- Add “onclick” option to header menu item
- Full submenu not displaying in wordpress
- I can´t make the menu unclickable in an easy way
- 2nd level (drop-down) of the navigation menu not working [closed]
- Mobile menu not working – jQuery error?
- show a hidden ul if li is active
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- Header lists posts instead of showing primary nav menu
- How to separate sub-menu output and keep associated with parent
- How to inject HTML to secondary menu on front end?
- Different colors for navigation bar
- Eliminate menu collapse button on website
- Best way to build a 500 item menu
- Count Level 1 Childs for Custom Nav Walker WordPress
- Showing main menu and child menu in diffent places in a same page
- Display same menu for parent and all its children
- WordPress Navigation default output
- Specifying Class style for Menu
- Convert HTML code to WordPress menu
- How to view menu and submenus in URL
- Permalinks linking to similar named site
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- Hamburger Navigation Menu
- Custom navigation / menu output (walker?)
- How does WP knows which template to use for a page