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)

0
votes
1answer
994 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
794 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( ...
0
votes
1answer
658 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. ...
2
votes
1answer
406 views

Menu highlight custom post type archive

I am a WP beginner and hope if anyone can help me out. I have recently installed WP 3.3.2 and Jigoshop 1.2 to see how things works if I can use WP as an ecommerce website. The problem I am facing at ...
0
votes
1answer
108 views

How do i specify a url to which to redirect the user after he logs out from facebook?

I need to specify a url that i will use after the user has logged out from facebook because i need to do some extra-cleaning and he is correctly logged out from our app. For this i need a url that ...
0
votes
2answers
2k views

How to add nofollow to wp_nav_menu

I need to add an option in my theme options panel to set a specific custom menu's links all to nofollow. Does wp_nav_menu() allow this or does it require a custom walker to manually ad ...
0
votes
2answers
88 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 ...
0
votes
2answers
468 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 ...
5
votes
1answer
477 views

How do I add nested categories to drop-down menu in twenty-eleven?

I know how to do it by writing a separate ul/li css for wp_list_categories, but I find menus of "twenty eleven" already well designed and flexible, so I`d like to use them. Custom menus, when I have ...
2
votes
0answers
256 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 ...
5
votes
3answers
2k views

Use navigation path from menu for permalink

I now switched to permalinks and defined my own structure /%postname%. If I click on a menu item it takes the path from the parent page (hierarchy defined directly when editing a page). What I want ...
4
votes
1answer
4k views

show current navigation path from menu

I want something like this Home > Products > Steel > Nails This information should come from the menu structure! I installed Breadcrumb NavXT but it seems that it only takes the path I defined (this ...
0
votes
1answer
552 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 ...
1
vote
2answers
844 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
235 views

Recent Posts widget missing current_menu_item class

Unlike the (WP standard) Custom Menu widget, the Recent Posts widget does not add the current_menu_item class when a post is selected (being displayed). This seems like a major oversight, am I ...
1
vote
1answer
415 views

Limit the menu child levels under “admin > appearance > menus”

in my effort in making the WP backend as user friendly as possible, I'm looking for a way to limit the amount of child (or submenu items) of the menu(s) under "admin > appearance > menus". They idea ...
3
votes
2answers
1k 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 ...
3
votes
3answers
1k views

One site, 2 distinct sections: two different top nav menus?

I have a site that is in two distinct halves. I'd like the same template to apply to the whole site (from a look & feel perspective), but for each 'half' of the site to have its own top nav menu. ...
0
votes
1answer
121 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
212 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 ...
0
votes
2answers
1k 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' => ...
0
votes
1answer
435 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 ...
4
votes
3answers
5k views

Add a .last class to the last <li> in each ul.sub-menu

I've seen a lot of code on how to add a first and last class to a WordPress menu, but in my instance I would like to add a last class to the last li in the sub-menu that WP generates. Here's what I ...
-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
849 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
299 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
685 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
2answers
104 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?
1
vote
2answers
589 views

3 blogs on one site with the same header menu?

Person X has default SITE with an integral blog. Person X also has SITE 2 with Blog 2 and also SITE 3 with Blog 3. Is it possible to have on the DEFAULT SITE HEADER MENU something like this: HOME ...
4
votes
1answer
410 views

Show only 2nd level of navigation depending on active navigation

For example, suppose a menu like so: Parent 1 Child A Child B Parent 1 Child C Child D Child E Parent 2 Child F In a certain part of my template, I want something to show depending on ...
2
votes
0answers
104 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 = ...
1
vote
2answers
2k views

Custom Post Types don’t highlight in menu nav

Working on a theatrical events site. The structure requires several separate events areas, each with a top page listing events in the particular area, and corresponding individual events pages ...
1
vote
4answers
574 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 ...
1
vote
2answers
2k views

Get parent page/menu id of current post

Basically, after setting up the initial "page for post" on the Reading Options, and then add that page to the menu I get the posts when I click on that menu item as expected. On there I know the post ...
0
votes
2answers
128 views

Increase search results for Admin -> Appearance -> Menus -> Search (default is 10)

I have over 800 pages in WordPress which becomes a challenge trying to find a specific page to add it to the menu. View all works if you have only a few pages so the best option would be to search for ...
0
votes
1answer
439 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
302 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 ...
0
votes
1answer
174 views

2 item in a same menu pointing to 1 page

I have a menu containing 2 item that pointing to 1 page, my question is how do i highlight the top level item according to where i click it. <nav> <ul class="mainNavi" id="menu-main"> ...
0
votes
1answer
164 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 ...
2
votes
1answer
2k views

How to use logout function on custom menu link?

All I am using wordpress custom menu, and there is one menu as Logout. I know wordpress Logout function <?php echo wp_logout_url(); ?> But how can i use it in custom menu ?
0
votes
1answer
376 views

How do I remove this menu bar?

I just use the pages for navigation. I don't need the menu bar that has the single item - uncategorized. Here is the link to the theme being used. ...
0
votes
1answer
17 views

Setting up menus before making a template live

I'm currently creating a new template for a client. Their current template does not implement menus at all. They are all hard coded links in the template. The new template I making them will implement ...
0
votes
1answer
108 views

Catagorized hierarchy menu for PAGES!

Yes, I am a noob at all this so please excuse my ignorance! So, for the past couple of days, I've been searching for a drop down page menu widget, but I would like to have the pages separated into ...
0
votes
1answer
450 views

Show menu based on parent & ancestor

Trying to show a wp menu based on parent. Works great on parent / child pages, but on grandchildren pages its failing. How should i restructure the menu selector to include the sub nav menu based on ...
2
votes
1answer
1k views

How to var_dump nav menu items from anywhere?

I wanna preview all the fields that the nav menu $item array holds. Is there a function to fetch it from anywhere and place it inside var_dump?
0
votes
1answer
149 views

Difficulties filtering manage_nav-menus_columns

I realize I've asked similar in the past, but I've currently running in some difficulties editing/removing the admin nav menu advanced menu properties. (without using jQuery) add_filter( ...