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
531 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
372 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 ...
1
vote
1answer
1k 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
503 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
4k 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
695 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
472 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
2k 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
338 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
321 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
383 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
576 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
971 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
20k 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
350 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
418 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
111 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
327 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
687 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
187 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 ...
3
votes
2answers
1k views

Use wp_nav_menu() to display a Menu from another site in a Network install?

So I'm basically upgrading an older site and I need to make it multisite as well for some blogs and such. I'd like to have the main site Menu(created from the admin) available on the other sites in ...
0
votes
2answers
125 views

Custom Post Menu link reverting to Blog menu item

So I have a Custom Post Type setup and running with no issue. I also have a WordPress menu object as my primary navigation. I added my Custom Post to the main menu and when I click on to the landing ...
5
votes
1answer
825 views

Deleted pages are NOT removed from custom menus?

When I delete a page, post or category that has previously been added to a custom menu, the delete routine is apparently not checking to see if the item belongs to a custom menu, and thus its not ...
2
votes
1answer
2k views

Not able to get current menu ID

I'm trying to get the current menu item ID. I hve found one thread that has put me on the right track: How to get current-menu-item title as variable? This is the code I use in my function.php ...
1
vote
3answers
2k views

Add a #hash to the links in my custom menu

I have created a static frontpage where I load in the content of all my pages. Now I have a normal custom menu, but the links refer to the pages, for example: http://mysite.com/about Now the I want ...
3
votes
1answer
2k views

wp_nav_menu() customized

<div class="example"> <h1>Menu</h1> <ul> <li>sub-menu</li> <li>sub-menu</li> <li>sub-menu</li> </ul> </div><!-- ...
0
votes
1answer
952 views

Styling issue with custom menus and sub menus

In a previous question I asked (and later worked out) how to style sub menus, I want to expand on that with another question related to styling sub-menus. I have hit an issue were if the parent is ...
0
votes
1answer
89 views

Styling child custom menu pages

I have a custom menu created using Appearance > Menus which contains top level and child pages. I would like to be able to indent my child level pages to give some sort of visual hierarchy to the ...
3
votes
2answers
2k views

How to determine if custom menu is active?

My theme registers custom menus with this function: function nav_menus() { if ( function_exists( 'register_nav_menus' ) ) { register_nav_menus( array('main-menu' => __( 'Main ...
0
votes
4answers
1k views

How can I remove a menu item programmatically?

I'm using the built in menu manager to create my menues and I disaply them by using wp_nav_menu(). I'm wondering, is it possible to remove certain menu items from being displayed based on some ...
0
votes
2answers
166 views

How to list only root pages?

I want to show only top level pages, without the dropdown. I am trying to set the depth to 0... wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 0 ) ); But it generates: ...
2
votes
1answer
665 views

WP_nav_menu fallback not working

I just realized the fallback doesn't work for my project when a custom menu doesn't exist. I can't figure out what I am missing. Here is the code that displays the nav menu: $menu = wp_nav_menu( ...
0
votes
1answer
1k views

How to change order of menu items

How can I change the ordering of menu items -- for example to make 'Wordfruit Copywriters' appear before 'How can you sell more of your product?' here: http://richardclunan.com/ Thanks, Richard
1
vote
1answer
128 views

Settings page above CPT page in admin section

I'm creating a plugin which generates a handfull or custom post types (CPT). I've create a top level menu in the admin left sidebar using add_menu_page(). I then added all CPTs to this menu using ...
2
votes
1answer
373 views

Custom Menus, Widgets & Conditional Statements

I'm employing custom widgets for my client because it's easy and they have several menus they need to create specific to site sections. I then want to allow them to add to the custom menu dynamically ...
1
vote
0answers
599 views

Menu item counter in custom walker [closed]

How can I get an item counter working in a custom walker ? I need the corresponding number (not the id) of each menu item for some class names, because my elements have position:absolute and each one ...
-2
votes
3answers
181 views

Plugin: Custom menu item problem

I'm using the following snippet to add a menu item: <?php add_menu_page( 'Foo Server', 'Foo Server', 'manage_options', 'foo-server', array('Class', 'method') ); ?> Fine, ...
0
votes
1answer
62 views

When I click a custom menu link, how do I make it update the URL in the browser to the external link?

I have created a "custom link" under Menus. The problem is that URL in the browser retains the Wordpress URL ( http://blog.tabsonrahm.org ) instead of the linked URL ( http://tabsonrahm.org/about ). ...
1
vote
1answer
856 views

Bulk Custom Menu and Wp-Ecommerce

I have to add a lot of items in wordpress menu (lot of 2nd level items) is there any bulk menu item creation method available to do it ? is there any way to add wp-ecommerce categories in wordpress ...