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)

4
votes
2answers
332 views

Automatically remove trashed pages from nav menu

As it is now, when a page that is in the nav menu is trashed, it still stays in the menu until manually remove via the nav menu editor. Is it possible to have trashed pages removed automatically? ...
1
vote
0answers
399 views

Custom Walker for wp_list_categories

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that: <div ...
0
votes
1answer
803 views

wp_list_pages not showing cpt as I expected

I have a CPT called 'vacancies' here is the code that registers it: function register_cpt_vacancy() { $args = array('labels' => $labels, 'hierarchical' => false, 'supports' => ...
0
votes
1answer
1k views

Sort wp_nav_menu() by menu order

I have made a custom menu handler for the back end, sorting the via a drag drop based on CMS Page Order. The problem now is that it seems that it's not possible to sort wp_nav_menu in any other way ...
1
vote
2answers
3k views

Search box as a menu item in the nav menu output by wp_nav_menu?

I am using the Twenty Twelve theme, and the following is the code it uses to register and display the menu. In functions.php: function twentytwelve_setup() { ... // This theme uses ...
2
votes
1answer
110 views

Put a wp_nav_menu inside another one

I've got two wp_nav_menu's defined - main and sub. The backend menu editor lets me add pages or categories or custom links to my menu, and I can place them under existing pages/categories/links. ...
0
votes
2answers
650 views

Remove the <ul> Tag from wp_nav_menu

I want to remove the <ul> tags from the wp_nav_menu. I already found different posts about it here but they don´t seem to work for me. Here is what I did: First I registered the menu in ...
0
votes
2answers
938 views

Insert a div before the wp_nav_menu

How do I go about inserting a custom div before the wp_nav_menu() adds the ul? The problem is that the script is inserting my 'div menu button' after the nav ul instead of before it. I am trying to ...
0
votes
2answers
87 views

How to get wordpress navigation to work

I have been using this code to display my wordpress navigation and it worked; <ul id="menu"> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> However,i want ...
0
votes
1answer
398 views

How to add an <img> tag when a menu item is a dropdown(or has a sub-menu) [duplicate]

Possible Duplicate: Adding a class (arrows) to main menu links that have children? I have two, very basic css dropdowns in my menu. I want to be able to add an arrow next to the dropdowns ...
0
votes
1answer
164 views

Menu not styling. New menus functionality giving me a headache

I can't find a good tutorial on the new menu handling functions, and the ones I found don't seem to work for me. What am I doing wrong? In my functions.php: (I'm using the Blank Slate theme as a ...
1
vote
0answers
76 views

Adding menu items?

I'm having a couple issues I can't resolve with my Wordpress site. First of all, I'm using "Weaver II 1.1.3" theme, free version. I recently installed Role Scoper ...
2
votes
1answer
827 views

Assign Menus to Theme Locations with theme activation

A site is using "child1" named child theme. When this site switches to other child theme named "child2", their widgets are moving too but theme locations are not moving. How can i auto assign menus to ...
1
vote
0answers
30 views

Create custom page and add it in nav menu by code

I am creating a plugin, and this time it should: create a page and add it to the nav menu, all by code ... Here is an example: http://img823.imageshack.us/img823/8531/09072012205520.png
0
votes
2answers
1k views

wp_nav_menu not appearing correctly on category page

this is the code i am using to call wp_nav_menu <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => '', ...
0
votes
2answers
668 views

wordpress plugin to add images to main navigation menu

Please advise about wordpress plugin to add multi states images to the main navigation menu I need to be able to add images on top of text for normal, hover and current state. Thanks
0
votes
1answer
247 views

if is_home(), change class of menu-item-225 of wp_nav_menu

Thanks for taking the time to check this out. I know it's outdated, but I'm using Wordpress 3.2.1. I have a Custom Home Page - where I created a Page for it and titled it as my Home Page with the ...
0
votes
1answer
519 views

How can I create an automatic drop down menu with my tags?

I have another post type which isn't the default one. I have four taxonomies attached to that post type. And I have many tags attached to these taxonomies. I would like to create a drop down menu ...
1
vote
1answer
175 views

How to Display a menu only if it has Posts in Custom Menu?

I created a custom taxonomy as category and display it by wp_nav_menu. The problem is, so far there are some terms in the custom taxonomy has no post attached to it, but it still show in the menu. So ...
1
vote
2answers
137 views

Using my WordPress menu on another platform

I have a WordPress site and am adding a Shopify-hosted e-commerce section which will be hosted on their servers and accessible via a subdomain. Is there any way to mirror the WordPress Navigation for ...
2
votes
1answer
349 views

Menu Custom link - using relative link when WP is in a subdirectory

I tend to develop sites in a subdirectory, and I tend to use a fair amount of custom links in my menu ( the "Custom Links" option in the WP admin Appearance > Menus section) to display archive pages. ...
0
votes
1answer
5k views

Automatically Display Sub Menu

To start... I am new to Wordpress and developing themes. I've got a main menu which I've placed in my header using the following code: <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
0
votes
2answers
166 views

How to make navigation a <select> list without a plugin? [duplicate]

Possible Duplicate: Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation? I have tried several solution for this, but none of them worked. I managed to make the nav list into ...
0
votes
1answer
90 views

Nav Menu Display

Hi I'm wanting to create a custom navigation menu that will require creating 2 div containers to hold the SUB-MENU set. In other words I want to do this: <div id="access"> <div ...
-1
votes
2answers
132 views

Change menu item order

My primary navigation menu consists of pages, categories, and custom taxonomy. It appears to be in a random order. How do I adjust the order of the links? (the drag/drop in wp menus panel doesn't seem ...
0
votes
1answer
2k views

show current item in custom menu, when inside a custom post type

I have a custom post type "product". I need to have its index accessible from the main menu, so i 've added a Custom Menu entry, simply stating "/works/" as url value. Problem is: if i'm looking at a ...
1
vote
1answer
88 views

Should I use custom menu, C.P.T. or theme options, or something else for this?

On many sites ( particularly CMS style business sites) there are 2, 3 4 or sometimes more boxes usually containing a title, icon and some text. These appear under the header linking to strategic parts ...
0
votes
1answer
2k views

Category menu item and its last 10 posts as sub-menu

i have some posts categories as element of a main navigation menu, and i'd like to display the ten lasts posts of this category as sub menu. ex: Category1 Lastpost1 Lastpost2 The ...
0
votes
1answer
384 views

add span to wp_nav_menu widget

Am using the custom menu widget to add a menu in the footer and i want to add a in the menu how can i do this ? like so... <li><a ...
0
votes
1answer
162 views

add_filter for where statment issue

I am trying to get start and end dates for posts filtered, and I found the documentation for the 'posts_where' filter, I am just testing it so far, but when ever I add the filter, it seems to pull in ...
0
votes
2answers
414 views

Styling an “active” link outside of Wordpress default menu

I want the background-color of the selected box on this page to display gray color once the user lands on the corresponding page. My link is currently setup inside of the page template itself as a ...
0
votes
2answers
560 views

Edit the (automatic) HTML layout of nav menus

I registered my menu in functions.php, called it from header.php and set it all up in the Appearances > Menus backend. The problem is, I need to manually insert a div surrounding <ul ...
1
vote
1answer
923 views

Header and nav menu problem on Thesis site [closed]

Unfortunately I managed to make the header image disappear and the horizontal nav menu distort on this Thesis themed Wordpress site I'm helping a friend with www.euanmitchell.com.au I've pasted the ...
1
vote
2answers
212 views

Select menu on browser resize

I have seen on some wordpress themes that if the browser width is less, the normal menu becomes a select menu. Can someone tell me how it is done? I know there is a plugin for that, but I want to ...
0
votes
1answer
222 views

Auto Filled Custom Menus for Custom Post Types?

Is there anyway to have custom menus that fill out automatically, specifically for custom post types? You can do it for default pages but nothing else it seems... For example you have a page which ...
1
vote
1answer
197 views

Plugin menu addition in multisite

$wp_admin_bar->add_menu( array( 'parent' => $menu_id, 'id' => $menu_id . '-example', 'title' => __( 'Example Menu Item', 'example' ), ...
2
votes
1answer
5k views

How show sub menu only using wp_nav_menu()

I am using this code to show the custom menu subpages if you are on the parent page. But what this code also shows is a parent page on a page that has no sub menu, which I would like hidden. Basically ...
0
votes
1answer
701 views

Add span in top menu item with nested itens

I found examples adding a class to top level itens, so we can display an arrow in menu itens with subitens, but is seems terrible to cope with the already builtin WordPress classes, can't display the ...
0
votes
1answer
685 views

How to develop a menu like wwe.com?

I would like to design and develop a WordPress menu like wwe.com's menu where it has multiple columns, images and a video section in drop down menus. I can create a multi-column menu, but I'm not ...
0
votes
1answer
44 views

Remove “Next Post” in nav_menu

I am creating my custom navigation menu with background-images. The menu items have a title from the Page, and that title is displayed above my background image, which is not what I want because the ...
1
vote
2answers
2k views

How do I fix this error: Warning: invalid argument supplied for foreach()?

I recently moved a wordpress install from my local instance to a dev server. For the move, I installed a clean version of wordpress 3.4, moved exact duplicates of the file structre, and used the ...
0
votes
1answer
469 views

Buggy wp_nav_menu?

I hope somebody can show me some light on this. I am working on a site that has a 3 level menu which loads calling 3 different wp menus (let's say "main-menu", "projects-submenu", ...
0
votes
1answer
866 views

Custom nav menu not showing

I want to make a custom menu that will be a select-box, I registered a custom menu: add_action( 'init', 'register_my_menu' ); function register_my_menu() { register_nav_menu( 'primary', ...
0
votes
1answer
2k views

Placing widget to menu

is there any way to display widget in menu. Actually what i want is "site stat" in the menu. (black area) At the right. link
5
votes
1answer
1k views

How to avoid wp_nav_menu() ID conflict?

How do I avoid ID conflicts if I use the same menu TWICE on one page. FIRST wp_nav_menu( array( 'sort_column' => 'menu_order', 'theme_location'=>'menu', 'menu_class'=>'menu', ...
2
votes
2answers
1k views

Automatically add a page to menu

I write a lot of content on a daily basis, and I have a lot of menus, submenus etc. I don't want to use the menu gui each time I create a new page/article. Is there any plugin or way of automatically ...
0
votes
1answer
535 views

To Add Logout Button in Menu [duplicate]

Possible Duplicate: How to use logout function on custom menu link? I want to add a logout button at very last of my nav.. I Found a function // functions.php function ...
0
votes
1answer
422 views

Add tabindex to navmenu

I would like to submit a "tabindex" attribute in a navmenu structure. The default options do not allow me to do it.
3
votes
2answers
242 views

Taxonomy slug by term ID

I'm trying to modify wp_nav_menu to display term thumbnails. To get those thumbnails I need term ID and taxonomy slug: $thumbnailimg = get_the_term_thumbnail($term_id, '$taxonomy', 'medium'); I ...
0
votes
1answer
176 views

select a main navigation menu per user type from multiple main navigation menus

GOAL: I want to use custom menus for two different kinds of users. For instance, I want to Merchant users to be able to use Merchant menu, and Owner for Owner menu. I do not have enough reputation, ...