Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into a theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files.

learn more… | top users | synonyms (4)

1
vote
1answer
464 views

wp-menu 'automatically add custom taxonomy terms' like it does for pages? [closed]

I've added a new wp_menu to my sidebar on a custom post-type page. The wp_menu displays a list of a custom taxonomies terms. I see that wp_menu has the checkbox to automatically add new top level ...
0
votes
1answer
717 views

How to Use the Function is_user_logged_in To Display Different Menus?

So, I want to create different menus for people who are logged in or not. I got a reply that i should use a function if (is_user_logged_in()) { wp_name_menu(array('theme_location' => ...
1
vote
1answer
722 views

Change image based on menu item id

My client request to put header images, but the images must be unique based on what menu the click. Let say i have 2 menus. First is What is A and second is What is B. I can know the menu id when i ...
0
votes
1answer
203 views

How to check if the Menubar contains no items?

I'm using the Menubar plugin to place a menu at the top of my website. However, I need to find a way to check if the menu contains items or not. My menu is called 'menubar'. Currently, I'm loading the ...
3
votes
1answer
2k views

Add a custom walkter to a menu created in a widget

I know how to add a Walker to a custom menu created by the theme (menu named primary in this example), but how can I target a menu thats created in a widget with the default wordpress custom menu ...
0
votes
1answer
726 views

wp_nav_menu doesn't show on index page

I'm using calls to wp_nav_menu() in my header.php file. They're conditional, based on whether a user is logged in. This is in header.php: <?php if ( is_user_logged_in() ) : wp_nav_menu( ...
16
votes
2answers
5k views

Adding an Arbitrary Link to the Admin Menu?

Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google? In my ...
2
votes
1answer
307 views

How to assign a WP 3.0 custom nav menu to a theme's navigation menu location via script?

I'm using this script inside a plugin to create a new custom menu on the fly and assign a page to it... $menu_id = wp_create_nav_menu( 'header-menu' ); $menu = array( 'menu-item-type' => 'custom', ...
0
votes
1answer
310 views

Can you exclude child pages of a specific parent within a navigation?

For example, I'm using wp_list_pages to display the navigation, the child pages (and their children) appearing on hover as is typical. However, I want one of these parents to not display the children. ...
0
votes
1answer
1k views

Adding a unique class to wp_nav_menu

How would I go about adding a unique class to the direct child li elements of the main parent ul element generated with wp_nav_menu? <nav id="access" role="navigation"> <div ...
-1
votes
1answer
453 views

WordPress wp_nav_menu within iFrame

EDIT 2: How would I iFrame wp_nav_menu contents while maintaining the styles and script associated with their display? (Please ignore all of the below seemingly confusing context of why someone would ...
5
votes
2answers
2k views

WordPress Menu Custom Walker Class

We are using a jQuery UI accordian to render a menu in the sidebar. We've already written the markup and javascript and I am just trying to get the wp_nav_menu to output the same markup we've already ...
0
votes
1answer
79 views

Navigation menu displays permalinks

I am creating a theme from scratch and the navigation menu is disturbing me because it is displaying the permalinks after the menu item name. See this picture http://imagebin.org/212406 Link name ...
0
votes
1answer
102 views

Custom post type post in custom menu

I created Custom post type named Regular pages. In that custom post type I created two pages About us and Services. Is there any way to add that posts into my custom menu I created in ...
2
votes
1answer
534 views

Best practices: Custom theme sidebar menu - hardcode or widget?

Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
0
votes
1answer
770 views

Links do not open from click, only in new tab [closed]

I'm fairly new to Wordpress, but I'm encountering a strange issue. I have a menu set up, and I've put links to some of my pages inside of it. But, when I try to click on any of the menu items, nothing ...
0
votes
1answer
556 views

Custom Menus Description Stripping HTML Tags

Spent two days researching this. I need to be able to add HTML to the Custom Menus Description. Everything I can find (including on this site) is from Feb 2011 and mentions using a strip_tags filter. ...
0
votes
2answers
85 views

What's the best way to customize the Wordpress Menu Page (in admin)

Helo, I would like to restyle/reorganize my Admin Menu Page (wp-admin/nav-menus.php). What's the best way of doing this? Can I just edit the page directly?
0
votes
1answer
1k views

How to create Loop code for Menu using Wordpress?

I have created a menu called "My Menu" in wordpress using Menus feature provided under Wordpress admin panel. I have added 3 pages into it named Page A, Page B, Page C. I have applied featured image ...
6
votes
2answers
2k views

How to add a custom metabox to the Menu Management admin screen?

Although I am very thankful to the wordpress core team that they have finally integrated native menu management capabilities I get frustrated with some key elements which I would like to change. I ...
0
votes
2answers
427 views

Nav Menu – Add class based on meta keys

I'm trying to find a way that changes the classes of the different nav menu items, based on the value of a meta key in the page. The menu currently looks like this: <li ...
0
votes
4answers
5k views

List WordPress Custom Menu's active parent level's children as separate menu

I have a structured Custom Menu: parent 1 children1_1 children1_2 parent 2 children2_1 children2_2 parent 3 parent 4 children4_1 etc. I want the following: on every page, the parent ...
2
votes
0answers
229 views

wp_list_pages sort order is different for different languages [closed]

I'm using the following code wp_list_pages(array('exclude' => '','title_li' => '','sort_column' => 'menu_order')) If I switch the language the sorting is different. One of the main menu ...
0
votes
2answers
995 views

Custom post type posts wont show in wp_nav_menu()

I have created a custom post type and registered it using this code $labels = array( 'name' => __( 'Portfolio' ), 'singular_name' => __( 'Portfolio' ) ); $args = array( 'labels' => ...
1
vote
2answers
712 views

How do I create predefined menus for my theme?

This is my code thus far: function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), 'extra-menu' => __( 'Extra Menu' ...
0
votes
1answer
489 views

wp_nav_menu li item empty

I created an menu by admin panel > Appearence > Menu. I have just one menu page in menu_lateral_1 . Or the result is <li id="menu-menu_lateral_1" class="menu"></li> <li ...
3
votes
2answers
989 views

Unregister Nav Menu from Child-Theme

I like to use the Starkers Theme and build child-theme. So, I`d like to remove the this primary menu Starkers (functions.php) function starkers_setup() { // This theme uses wp_nav_menu() in one ...
0
votes
1answer
112 views

Displaying wp menus by name without using theme locations

I used wp menus in the past but always registering a location and then using: <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?> To display a menu on that location on my ...
0
votes
1answer
210 views

Set first level items to <h5> in wp_nav_menu()

<div class="news-features"> <h5><a href="">News & Features</a></h5> <ul> <li><a href="">Industry ...
2
votes
3answers
1k views

Hide and show menu subpages

I am sorry if this is not clear, but I am using translated wordpress so I am translating some names back. I have pages in menu and when I click on some item it goes to that page. But I need f. e. ...
0
votes
1answer
385 views

Custom Menu in Themes not working even in Twenty Eleven theme

I am currently having problems with a Wordpress installation. The remote site I was supposed to theme uses WP 3.2 so I used 3.2 I created a theme that supports custom menus and it works fine on my ...
-1
votes
1answer
1k views

Why don't my custom menus show up in WPtouch Pro?

I'm using WPtouch Pro to create a mobile theme for my wordpress installation. I've activated it, but the custom menus I've created don't show up in menus drop down. Note that I'm using a different ...
0
votes
2answers
168 views

a better menu, menu options assistance for WP

So long story short, im a noob WP dev and im like on my 2nd custom WP site so sorry if i sound a bit lost. As i was doing my first WP custom site, i noticed that for example, on the default theme and ...
2
votes
2answers
768 views

Automatically generated menu

I have a menu: Activities Projects About Us News (not counting submenu items). Now "Activities" has no submenu. I created custom content type "project". My boss want to fill the menu ...
0
votes
1answer
283 views

exclude pages in custom menu

I am creating a custom theme for wordpress, which will have a settings page. i am adding the option to exclude pages from the navigation, which will simply work on the page id separated by a "," here ...
0
votes
1answer
645 views

dropdown menu, with walker

I'm using the following walker to create a dropdown menu that I will use on a mobile version of a project I'm working on... it works fine, however, when I select the page, it doesn't load the page, ...
0
votes
1answer
729 views

Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection

My blog's page hierarchy is as follows: - Home - About - Movies - - General - - All Movies - - Rules Right now, I have a horizontal menu showing Home | About | Movies, and if I hover Movies I get: ...
0
votes
2answers
100 views

How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?

I need to change the color of some custom link elements in dropdown of my wordpress custom menu here. There 3 items in my dropdown that dont have any url associated with them: Air Duct Chimney Dryer ...
0
votes
1answer
1k views

How to get wordpress nav menu outside of wordpress system?

I want to get a specific wordpress nav menu as a list in my custom php page outside of wordpress. How to do that?
4
votes
3answers
2k views

wp_nav_menu sort order?

Hey Guys, I'm trying to build a right aligned, wrapping capable wp_nav_menu powered menu. Is there a way to have it rendered backwards, so that float: right; would work and not mess up the order? I ...
0
votes
2answers
52 views

Adding new pages to Menu

I am new to Wordpress. I am using the free Theme for my blog. I have added Menu as About Us, Contact Us, Groups etc .. I need to add Static Pages to About Us, Contact Us etc ..!! I dont know to How ...
2
votes
0answers
101 views

Strange behavor of wp_nav_menu by not appearing [closed]

It is in header.php wp_nav_menu(array('theme_location' => 'top-nav','container_class' => '', 'fallback_cb' => '')); in functions.php function register_custom_menus(){ ...
0
votes
3answers
2k views

Removing specific menu items?

I used the following to remove certain menus for the "editor" function remove_menus () { global $menu; if( (current_user_can('install_themes')) ) { $restricted = ...
3
votes
1answer
970 views

How can I get my Custom Post Types to appear in nav-menus.php 'Menu'?

I am having a bit of a problem with my custom post types. I can create them fine in my theme, but I cannot get them to show up in the 'Menu' screen ... at least not by default. I have tried adding ...
0
votes
2answers
316 views

How to remove the tripadvisor logo from the wordpress theme?

Tripadvisor offers a free wordpress theme at here If you go on this page, you'll see the free wordpress theme, and on the navigation bar, there is the trip advisor logo on the right, How can I remove ...
1
vote
4answers
541 views

Remove Metabox from Menus screen

Been digging into WP files for a bit and think I just might be missing something. The end-goal is to remove the Theme Locations metabox from the Menus screen if someone doesn't have a certain ...
0
votes
1answer
368 views

Change order that the menu is generated with wp_list_pages

I am trying to order the output of one of my menus to be based off of the way they are setup in the Appearance->Menus pane, however it seems to only want to do it alphabetically. For example I ...
0
votes
1answer
290 views

Edit html for menu items in default frontend menu

I am running Multisite, and would like to be able to append menu items to all frontend menus on all sites. This should work for menus saved via the admin interface as well as the default menu that is ...
3
votes
1answer
2k views

Why is my menu order not working with wp_nav_menu?

I have a custom menu using the new Menu System but it is not returning in the correct order. I have no idea what order its in - its not alphabetical, or by date, or by any pattern I can see. The link ...
0
votes
1answer
161 views

Add function to custom menu

I am am trying to add a function to my custom menu. The menu works, but I have no idea on how to get the custom_execute_shortcode() function to work inside the add_profile_link_to_nav() function. Any ...