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)

2
votes
1answer
677 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
130 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
382 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
620 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
183 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
63 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
872 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 ...
0
votes
1answer
102 views

Highlighting top level link when viewing one of it's sub-pages, which are not linked in the menu

I have a page that is not linked in my custom menu. This page has a parent page, which is linked in the custom menu. If I go to the "not-linked" page, I want to to highlight it's parent page link in ...
0
votes
1answer
331 views

Admin menu success message

I have created a simple admin menu that allows users to enter in some basic information that is stored in the footer. When they click save the url appends &settings-updated=true Is there a way, ...
0
votes
1answer
1k views

Trouble highlighting correct menu parent with wp_nav_menu classes while viewing “single posts”

I just updated a menu on a site of mine to utilize wp_nav_menu. Setting this up with WP was fairly straight forward however I've run into one small snag with the the way wordpress is outputting its ...
1
vote
1answer
453 views

How do I access the menus produced by Dashboard > Appearance > Menus

A continuation to this question: Replacing WordPress menu functionality with a plugin Since I really rarely work with WordPress (I've done a lot of work with phpBB, myBB, Concrete5, and custom PHP ...
1
vote
1answer
509 views

Replacing WordPress menu functionality with a plugin

I asked this earlier on StackOverflow.com before realizing there was a StackExchange specifically for WordPress. Here is the link to the old question (for moderator deletion): ...
0
votes
1answer
1k views

Custom menu with categories and tags

Basically I need a custom menu consisting of two level. Top level will consist of available categories, possibly with added feature that each category name is follow by the number of posts in that ...
1
vote
2answers
1k views

global menus made from master site's custom menus wpmu network

I'm looking into a way to have global menus across my network of blogs. Basically I am using wordpress as a CMS - the purpose of the network is actually to ringfence content. The sub blogs will be ...
0
votes
1answer
424 views

Can I output a custom taxonomy as a submenu in the site navigation menu?

I'm building a WP 3.2 site with a couple of custom post types and taxonomies. I'm calling one of these custom post types programs, and its associated taxonomy is called topics. I'd like to add an ...
0
votes
1answer
165 views

I cannot include a file in my plugin settings page

I'm trying to create a settings page. If I print things within index, I can see it. If I try to include it, I can't see anything, neither errors. add_options_page('My Plugin', 'My Plugin', ...
1
vote
1answer
1k views

Show Home Link In wp_nav_menu but only on primary menu

This function adds a home link into my nav menu, but it is added to 3 other menus I am using as well. I don't quite understand where to add code to only display in my primary nav. function ...
0
votes
2answers
484 views

Active Menu Highlighter with Subpages?

my question is... I have 2 pages & 2 subpages in each page. like: page1 -->subpage1 -->subpage2 page2 -->subpage1 -->subpage2 & my Menu is Page1 page2 Now if i select ...
-1
votes
1answer
216 views

How to highlight current menu bar base on the URL?

================================== Home Contact About ================================== For example, The menu should looks like ================================== Home Contact About ------- ...
0
votes
1answer
2k views

finding menu hierachy > wp_get_nav_menu_items

Hi I am building a menu using the code listed here. http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items Is there a way to suss out the menu hierarchy. As i can not debug this, it is ...
1
vote
1answer
386 views

How to append to menu items selectively

I'm making this wordpress theme, and I need to create a menu that is vertical but its submenus are horizontal, like this: MenuItem SubmenuItem | SubmenuItem AnotherMenuItem SubmenuItem | ...
0
votes
1answer
128 views

Why isn't the Settings API designed to work for plugins using custom admin menus? [duplicate]

Possible Duplicate: How should one implement add_settings_error on custom menu pages? The Settings API offers all sorts of labour saving features and future proof code. I find it really odd ...
1
vote
1answer
238 views

Second menu not showing

I am running WP 3.2.1 on a dedicated server and having a little trouble with a second menu. I have a menu at the top of the page which is working fine but I've added a secondary left menu to the left ...
-1
votes
1answer
151 views

Menu in widget with yahoo style

I would like to know the procedure to put my categories in the left menu on the widget in the same style of yahoo I like this style: ScreenShot-> ...
0
votes
1answer
408 views

Make a menu item unselectable

I'd like to make the main menu selection for some menu items not selectable. For example, I'm doing a resume and I have a "Work History" page with "Job 1", "Job 2", etc. as children. I'd like to be ...
1
vote
3answers
230 views

How do I apply a class to custom menu items based on user roles

I have a members section on my site and they see specific custom menu items. I'm seeking a way to simply apply a star to the <li> based on it's permission level and what the user's role is. ...
0
votes
2answers
247 views

Disabling tooltip on menu items

For some reason, my menu items are showing tooltips on hover-over- In other words, the menu links have "title" attributes being added to them. Looking at my other, older WordPress sites, this is not ...
0
votes
1answer
144 views

Add user managable titles to custom menus?

I am looking for a way to include a user managable title in a menu. Ideally, it will take the place of the first <li> object in the output. Any ideas? Edit Clarification I am looking for a ...
0
votes
2answers
260 views

Check if has pages?

So hard to find this info... I'd like to know a way to find out if there are pages. Something like: if (has_pages()) { /* do something */ } I can't find a reference to any similar function... how ...
7
votes
3answers
4k views

remove “edit your profile” from admin menu bar

How can I remove "edit your profile" submenu under "my-account-with-avatar" admin menu bar, while still keeping the avatar and logout?
1
vote
4answers
2k views

wp_nav_menu, add class to every nth item?

is there a way to add a class to every nth item in a menu using wp_nav_menu? Trying to create columns but need to add a 'last' class to the 3rd item. cheers! Dc
0
votes
2answers
228 views

Divide Menu into Separate Menus and Display them Side by Side

I'm having problems saving a large menu. I keep getting a 500 Internal Server Error. I'm using WP 3.1. I use a HostGator dedicated Linux server and the Superb theme. I have a menu with 4 main ...
0
votes
3answers
2k views

500 Internal Server Error when Trying to Save Menu [closed]

I've got a few dozen pages in my menu. When I try to add new pages to the menu, then Firefox gives me the "connecting" message int eh tab and it eventually stops after a few minutes and gives me an ...
1
vote
2answers
809 views

Custom settings disappear during database migration?

I've noticed a problem that pops up occasionally when moving a WP install from one place to another (usually the same server.) I copy all the files to their new location, get a mysql dump, update all ...
0
votes
3answers
466 views

Dropline menus — seperators between children only?

I'm working on a custom dropline menu using wp_nav_menu. Using wp_nav_menu( array( 'theme_location' => 'primary', 'after' => '|' ) );, I can put separators after every item. However, I'm only ...
0
votes
1answer
2k views

How to set up suhosin.ini for unlimited menus

On my custom menus page, I'm getting a limit (e.g. the users cannot add more menu items). I have done some research and have found that my suhosin settings may not be allowing wordpress enough memory. ...
0
votes
1answer
339 views

Getting the WordPress custom menu titles and outputting them in a theme

I have created a number of custom menu slots in my WordPress theme, and the output of the links into them has been very easy. Unfortunately I cannot find a way to output the user entered title for the ...
1
vote
1answer
146 views

Wordpress Custom Menus Issue

In my template I'm using calls like this to output some custom menus: <?php wp_nav_menu(array('container_class' => 'secondary-navigation', 'theme_location' => 'secondary')); ?> Ever ...
0
votes
1answer
487 views

Second Level Menu

I'm trying to figure out how to do, Second Level Menu as a template function, that persistent when visiting any level, whether its a top level page, or a grand children Page. Any Ideas?
1
vote
2answers
2k views

Filter out built-in wp_nav_menu classes but keep custom class

Im trying to remove / filter our all the classes from the wp_nav_menu, EXCEPT the custom ones that i insert (in the "CSS Classes (optional)" field) when creating the menu in the admin. I found a ...
0
votes
1answer
260 views

Using front-page.php need new blog page

I'm using front-page.php to generate a static frontpage for a Web site I'm working on. I can't seem to get Wordpress to display the blog posts on any other page. I tried creating a custom template to ...
0
votes
1answer
164 views

menu in different page in different style

I have a one column page for the home page where I have a mega menu and in side the site there is another page called about us where the mega menu is present but it is in small format just like it ...
0
votes
4answers
320 views

How to set classname for <li> tag in wordpress menu?

I am using. <?php wp_nav_menu($args); ?> to get menu from WordPress. It returns the menus with <ul> and <li> structure. How can i set class name for every <li> tag ...
1
vote
4answers
1k views

How to set classname for <li> tag in wordpress menu?

I am using. <?php wp_nav_menu($args); ?> for get menu from wordpress.it returns the menus with <ul> and <li> structure. In that i need to set class name for every <li> tag ...
0
votes
1answer
740 views

Dynamic User State & City selection

I need to implement a state-city selection for my users to choose from. Where they first choose their state and then there is a city drop down field that shows only the cities in that state. ...
3
votes
3answers
7k views

Query menu_order custom post types

I added 'supports' => 'page-attributes' to my custom post type, and now i have the meta box for page ordering. When i use the argument 'sort_column' => 'menu_order' with get_pages() on my ...
0
votes
1answer
123 views

How to substitute old wordpress menu by wp 3 menu the right way?

I have a wp theme with this menu in header: <div id="header_nav"> <ul id="nav" class="clearfloat"> <li><a href="<?php echo get_option('home'); ?>/" ...
1
vote
2answers
567 views

How can I automatically add child pages to pages in a WP menu?

In the WP menu creation GUI there's the Automatically add top level pages option. I would like to do the opposite, for any page that is in the menu, automatically add it's child pages. Is there a way ...
2
votes
1answer
360 views

how to assign more permission to wordpress author

I have installed jw player plugin so that users of my site could upload their videos. Right now, admin can only see jw player menu on the admin panel and he can only upload videos and use this plugin. ...