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
2answers
1k views

Keep parent page active

I have a parent page on my main menu. When you click on that page, you are presented a sidebar with another menu listing of all of its child pages. When you click on one of the child pages, the ...
0
votes
1answer
1k views

wp_nav_menu: output featured image of each page listing

Context: I am building a portfolio index where I can sort the individual project links in my sidebar by priority of appearance. I've successfully done this using the wp_nav_menu(), where each project ...
0
votes
1answer
168 views

How to output all taxonomy links from a custom post type in a menu?

I made a custom post type called Product. And a taxonomy with the name 'product-category'. These taxonomies have pages where we show a list of the products that have that taxonomy. Now my question is ...
0
votes
2answers
266 views

Remove the current item from a menu

I have a menu. It has two items: the first is a link ("Index", www.domain.com) the second one is a link to a category page I have the requirement to remove the first link when I'm on the index ...
0
votes
1answer
9k views

Custom Post Types in the WordPress Navigation Menu

Hello can someone help me out by pointing me in the right direction as to where I can find out how to add a drop down menu to a theme with my custom post types stored within in, have been ...
3
votes
3answers
2k views

How do I pass an argument to my custom walker?

I've set up a custom walker, and it works as desired when I hard code my variable. What I want is to be able to call my walker and pass it a variable that is used in the walker. For example: ...
0
votes
1answer
115 views

Parent/Child pages

I find that the parent/child pages in the "Pages" area of WordPress has become a bit confusing since the introduction of the new menu creation area. Using the new menu system, as far as I know I can ...
0
votes
1answer
600 views

Menu that shows months and filters posts to show only posts from that month and shows posts as sub items

I've created a custom post type called news. On the page that shows all of my news posts i need to have a menu on the left side (sidebar) which shows months, i.e. October 2011, September 2011 and so ...
1
vote
2answers
258 views

Menus, but not by theme location

I'm trying to figure out how to display a menu that has been created, but without having to assign the menu to a theme location. From what I can tell, you have to assign a menu to a theme menu ...
0
votes
1answer
309 views

What is the current page's Taxonomy?

I need to be able to switch between the current page taxonomy so I can load in the appropriate menu: $current_tax = 'need to get this from somewhere'; switch ($current_tax) { case 'tax1': ...
-1
votes
2answers
912 views

Auto add pages to category menu

I have created a custom post type called Products, on the product pages i have a menu in the left sidebar. This menu is made up of categories for the products. Is it possible to have my products ...
1
vote
3answers
2k views

How to add meta box to backend menu page

I need to add a meta box to the backend menu page, in Appearance->Menus (/wp-admin/nav-menus.php), to list all the available post types, both the defaults & the custom ones. It will contain a ...
7
votes
4answers
23k views

How make top level menu item not have link, but have sub-menus that are linked?

I'm building a horizontal menu and some of the entries on that menu will have dropdowns (sub-menus), and some won't. Those that have sub-menus are not actually pages. They're just meant to be guides ...
0
votes
2answers
927 views

Add a submenu to wp_nav_menu

I literally don't know where to begin with this. The only wp_nav_menu() documentation I found was http://codex.wordpress.org/Function_Reference/wp_nav_menu and all submenu docs reference a different ...
0
votes
2answers
893 views

Conditional custom menu?

I'm trying to create a custom menu that displays a <li></li> when a user is logged in, and not display it when they're not. I have this so far, but it's not working. Does anyone know how ...
0
votes
2answers
177 views

New custom menu created. how to apply it?

i have a childtheme from twentyeleven, i created a 'inicio' (name) custom menu, how can I apply it? tried: <?php wp_nav_menu( array( 'theme_location' => 'inicio' ) ); ?> but not ...
2
votes
4answers
4k views

Adding a class (arrows) to main menu links that have children?

I'm wondering if it is possible to add different classes to second/third/fourth/etc-level items that have children in Appearance > Menus tree? That's how I call the menu: <?php $menu_args = ...
2
votes
1answer
2k views

Add meta data to the menu

I encountered this problem what i thought to be one of the worlds simpliest things, I wanted to add a subtitle to the menu somethin alike this http://img4.imageshack.us/img4/7816/unled10b.png . Then i ...
0
votes
1answer
136 views

Editing the nav menu?

I want to add | (vertical lines) between the page links in the nav menu. What's the easiest way to do this?
1
vote
1answer
539 views

How can I make this custom menu work?

Can someone share with me the easiest way to convert this to work with wordpress’s 3.0 built in menu support. So far I have the topnav menu working correctly, but I’m having a hard time getting the ...
0
votes
2answers
398 views

Is it possible to link to the same page from wordpress page menu?

I have a big one page wordpress site and a menu created from wordpress admin pages panel. I added everywhere in my main page such links like <A NAME="gohere"> and similar. Now I need to add ...
2
votes
1answer
2k views

Get menu object from theme_location

I'd like to get a menu object from its theme location argument. My goal is to output separately the menu name and its items name, url and description. Example of what I'm looking for : $menu = ...
0
votes
1answer
509 views

.current_page_ancestor broken in Twenty Eleven

I would like to have a level 1 menu in a vertical menu and a full menu in a vertical menu in the left sidebar in Twenty Eleven. My problem is that I would like to make the top item bold if the user is ...
0
votes
1answer
1k views

How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?

I am using the WordPress (Appearance > Menus) feature to create a custom navigation menu. I created a menu item that has a dropdown and would like to activate the dropdown menu with a click rather ...
2
votes
2answers
5k views

What's the easiest way to duplicate an entire navigation menu?

What's the easiest way to duplicate an entire navigation menu? I don't care if it involves SQL commands or whatnot. I just have some really big menus that I'd like to duplicate. Didn't see a plugin to ...
1
vote
1answer
79 views

Custom menu deletes itself

I've set up a menu on one of my sites. The menu has ~30 items. Everything is fine, but at some point the menu crops itself and displays only the first 12 item. Does anyone have an idea why this is ...
5
votes
1answer
728 views

Custom Post Types posts as submenus in Nav Menu

I have created a Custom Post Type called "Collections". I'd like to have in the Nav Menu (no custom menus involved) a menu item 'Collections' that links to the index page of Collections Custom Post ...
0
votes
1answer
486 views

WordPress Custom Superfish CSS Problem [closed]

The problem can be found here: http://themeforward.com/demo2/ Use my menu and navigate to Features > Shortcodes > Typography. Notice how the border ( ul .sub-menu { border:1px solid #000 } ) moves ...
0
votes
2answers
3k views

How to show only parents subpages of current page item in vertical menu?

I just can't find a way to make it possible to show only current parent items down to current page item in a vertical menu the "wordpress way". What I want to achieve is the following dynamic ...
1
vote
2answers
2k views

How to test if blog page is active

bear with me here as I explain my problem. Generated menu via wp_nav_menu, so I have use of the .current_page_item class. The thing is, I've used jQuery to replace the generated link text with some ...
1
vote
1answer
1k views

jQuery Hoverintent plugin in TwentyEleven Menu [closed]

The default menu in the TwentyEleven theme is quite nice, pure CSS, but unfortunately, way too responsive and quick. It would be so nice to have it respond the same exact way with which the admin bar ...
0
votes
1answer
339 views

Can't insert internal links and menu errors appearing

I'm getting this error every time I add an item (page, post or category) to my menu system: Warning: Invalid argument supplied for foreach() in ...
1
vote
2answers
326 views

Where to place PHP code that inserts (or doesn't insert) menu item?

Where do I place the PHP code to insert or not insert a menu item based upon some condition, i.e. value of another PHP variable like so: $listItem = ''; <?php if ($condition) { $listItem = ...
0
votes
1answer
388 views

horizontal menu / 4-level depth

I need a 4-level horizontal menu. which is the best way to build, organize and style it? "Active" tabs should be highlighted. <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ...
1
vote
1answer
615 views

Bar separated navigation by extending Walker_Page

This question follows on from this one: Bar separated navigation by extending Walker_Nav_Menu I'm trying to do the same thing but this time I'm extending Walker_Page instead. The issue I'm having ...
2
votes
2answers
1k views

Add column to pages table

Hey all i am trying to find the section within the edit.php page where it populates the table with all my current pages. What i want to do is add another colum to the table in order to launch a side ...
15
votes
2answers
21k views

How to use wp_nav_menu to create a select menu dropdown?

I'm using the following inside the wp_nav_menu function to create a select dropdown menu where each menu item is an option in the select dropdown... 'items_wrap' => ...
0
votes
3answers
2k views

Way to bulk delete menu items in new 3.x Appearance > Menus system?

I've done some searches but maybe I'm searching on the wrong terms. Does anyone know if there's a way to bulk-delete menu items in the new Appearance > Menus system? This is mostly to clean up ...
0
votes
1answer
2k views

Count within foreach loop

How can I echo out the count of within a foreach loop? I want to change the class of the div below so it's menu-button-1, menu-button-2 etc etc: <?php $pages = get_children(array('orderby' ...
0
votes
2answers
110 views

Creating a custom menu

I want to create a custom menu in the style below, can this be done? The code in brackets needs to grab the actual page content for each page. <div class="menu-button-(page-name)"> <a ...
0
votes
1answer
1k views

WordPress menu with custom taxonomy

I'm looking for a scalable, best-practice way to do the following: I need a menu to have a link to the homepage, a standard page, and a variable number of custom post type archives. Each archive must ...
7
votes
2answers
1k views

Add Caret to Menu Items with Sub-Menus in WordPress Theme

I'm working on a custom theme using wp_nav_menu(). What I want to do is add a caret to menu items that have sub-menus. For example, If my menu looks like this: Menu Item 1 Menu Item 2 Menu Item ...
0
votes
2answers
359 views

jQuery Drill Down iPod Menu FOUC and Selecting Current page

I'm using Drill Down Ipod Menu and I'm really like the style of showing submenus , but I have two problems with it. 1-when i load a page it shows all submenus open for a second and I experience a ...
0
votes
2answers
442 views

Remove current-menu-item for a specific link

bbPress uses a custom post type called forums. When I click on forums, both forums and the Blog menu items are highlighted as a current-menu-item. Is there a way to remove the current-menu-item from ...
2
votes
2answers
1k views

Bar separated navigation by extending Walker_Nav_Menu

I have the following menu in my header: <?php $args = array( 'menu' => 'Main Menu', 'container' => false, 'depth' => 1, 'items_wrap' => ...
0
votes
1answer
114 views

Custom menu styling

I'm trying to style a custom menu here so that I can let other people manage this site alongside myself. What I'm trying to do is remove the text for the top level links while leaving the a as a ...
0
votes
2answers
2k views

Add section (add_settings_section) to a custom page (add_submenu_page)

I have a plugin page created with add_submenu_page. I want to add a new section there but nothing happens: add_submenu_page('parent', 'Foo', 'Foo', 'manage_options', 'foo-settings', ...
1
vote
3answers
331 views

Implementing a tricky wordpress menu (nested categories + thumbnails)

I'm trying to make a layered wordpress menu, out of categories. Here's how it's going to look: I have no clue how to develop this, can't do it with get_posts (not sortable by parent/children), or ...
0
votes
1answer
709 views

Add posts from a category to menu with all posts in it as sub menu

Because there is no category option on pages I desided to add post category to main nav. I added the category and added posts on it but it doesn't dsplays the sub category on menu. what should I do to ...
1
vote
1answer
193 views

Review site custom post type structure

I build a review site with Wordpress. I created a custom post type called "Reviews", inside this, theres two taxonomy, one called "Genres" and one called "Types". Inside the Genres, i have a couple of ...