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
2answers
583 views

wp_nav_menu and fallback

I am using this code to call any custom menu and display: <?php wp_nav_menu( array( 'container' => 'none', 'container_class' => 'menu-header', 'theme_location' => ...
3
votes
2answers
992 views

Is it possible to add classes to list items in wp_nav_menu()?

I am using <?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'menu_class' => 'nav-bar', 'container' => 'nav' ) ); ?> to output my ...
0
votes
1answer
544 views

Add a menu metabox to post edit page

I have a basic understanding of how to create meta boxes, and I have an understanding of how and where to put wordpress menus on the front end. I am a wordpress theme developer but NOT a wordpress ...
0
votes
1answer
619 views

How do I get my nav menu to show sub pages?

http://webdesignsalemoregon.com/westernmennoniteschool/ is my website. I've got the top menu which is the one that was in the theme when I started to customize it. It's got a test drop down that ...
1
vote
2answers
1k views

Separator for custom nav menu

I creating a custom footer navigation in wordpress. I looked all over the wordpress documentation and still haven't found anything. So, what I'm trying to do is add an "|" in the navigation like this: ...
3
votes
1answer
438 views

How to apply a class to the second word in menu list item?

I want to apply a class to a word in my menu. For example, say I have a list item in my menu called "My Item". I would like to apply a class to the word "Item" so that I can style it anyway I want. ...
3
votes
3answers
10k views

Show specific menu item from wp_nav_menu based on id

I have a wp_nav_menu "Main Menu" such as the following: Top Level (#menu-item-1) Sub Item Sub Item Top Level (#menu-item-2) Sub Item Top Level (#menu-item-3) Sub Item A Sub Item B Sub Item a.1 ...
0
votes
1answer
432 views

wp_list_pages() not showing on posts

I have the following code showing up a sub-menu on my website (in my header.php file) that shows all well and good, however when I open up a post it dissapears: <div id="dep-menu"> <?php ...
1
vote
1answer
4k views

Breadcrumbs showing Parent and Child Pages

We are trying to create a function for breadcrumbs that will show not only the path to the current page, but also to other pages with the same parent page. For instance, on ...
0
votes
1answer
116 views

Hide custom menu when when no menu selected

The title might not a 100%, feel free to correct... I'm building a custom theme that has a couple of costume theme locations for menus (1 main menu, 1 footer menu, 1 "Follow Live" button). These are ...
0
votes
1answer
478 views

Custom menus not showing

As a follow on from my last unresolved query regarding menus, the problem has extended even further. My menus are not printing anywhere in the code. I am registering the menu functions.php: ...
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 ...
0
votes
3answers
229 views

Add jQuery function to media button

I have added a custom button to the media actions in a custom theme, function wp_myplugin_media_button($context) { $wp_myplugin_media_button_image = ...
0
votes
1answer
250 views

How can I fetch the next level of the currently selected main menu (hierarchical menu)?

I have the following structure (defined at Appearance > Menu): foo fii faa fee bar boo bee bii Now, in my theme I have one horizontal menu that shall always display foo | bar Below that, ...
1
vote
1answer
2k views

Add an extra field to the navigation menu box?

Goal: I like to use a subtitle in the navigation bar. The most logic location, in my opinion, would be Appearance > Menu and add a field below navigation label called subtitle. So the end user can ...
-1
votes
1answer
606 views

Inserting a shortcode into a genesis menu?

I'm trying to insert a shortcode as the last item in a menu but it results in creating the <li> but then throwing the shortcode output elsewhere, outside of the list. It also removes the closing ...
0
votes
2answers
235 views

custom menu not found

I am trying to use a menu which I have partially working, I have setup functions.php: if (function_exists('register_nav_menu')) { register_nav_menu('main-menu', 'Main Menu'); } I have configured ...
0
votes
1answer
2k views

How to add div to top menu itiem

<div class="menu"> <ul> <li class="page_item page-item-15"><a href="link.html">XXX</a></li> </ul> </div> Where "XXX" I want to put ...
1
vote
1answer
270 views

get_search_form() doesn't appear to take parameter into account

I am creating a menu manually and trying to include the search form. this is taken from the Wordpress Docs "Building a simple menu list" at ...
0
votes
3answers
276 views

Adding an additional menu in Wordpress

I am using wp_nav_menu() and I want to add the search box as a part of the menu. I am having trouble figuring it out and was hoping for some assistance: My code: <?php $args = ...
1
vote
1answer
4k views

register_nav_menus() won't register menus

Please help with menu registeration: I have followed this guide (http://codex.wordpress.org/Navigation_Menus) step by step. Added the following code to functions.php: function register_my_menus() { ...
3
votes
2answers
2k views

Allow html tags in WordPress Custom Menus Description Field

I added descriptions to my menus using this post, Menu items description?. However I need to be able to use html tags and WordPress is stripping them out. Can anyone help?
0
votes
2answers
174 views

Adding an external link to wordpress menu

I am currently using wordpress menu like this ... $args=array('menu'=>'menu', 'menu_class'=>'', 'before'=>'<span>', 'after'=>'</span>', ...
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
1answer
180 views

How to get rid of the home link in nav menu?

I am using the following code for my navigation structure. Currently it shows a home link in the navigation. Why does this show? and how would I get rid of it by changing this code. <?php ...
3
votes
1answer
162 views

How to display wp_nav_menu() conditionally only when not on a 404 page?

I made a custom design for my site. On my header i put my navigation so everytime i call the header the navigation will be called to, so that i would not be calling it all the time. But now i have a ...
0
votes
1answer
529 views

How to make wordpress nav menu use post custom meta data

Using WordPress custom navigation menus automatically gets the menu item label and displays it between the of the menu item, what I need to do is to get a custom field value of the page and displays ...
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 ...
1
vote
2answers
101 views

Querying both pages and posts

I am building an "advent calendar" for a client and they are wanting a combination of specific pages and custom posts appearing on the front page, in a specific order. Things that need to be ...
1
vote
3answers
173 views

Remove the whole menu in the admin

How can i remove the whole menu in the admin? I have this code: function remove_menu_items() { global $menu; end( $menu ); while ( prev($menu) ) { $value = explode( ' ', $menu[ ...
1
vote
1answer
1k views

Wp_Nav_Menu - Identify the last menu item

I'm have a horizontal top menu with a solid border on the right hand side. <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'nav', 'fallback_cb' ...
0
votes
1answer
577 views

wordpress add_submenu_page adds broken link

I install my plugin in several sites and the submenu links generation at backed works fine, but fails in one specific site. I use the follow code to add the submenu items: add_menu_page( 'Plugin ...
0
votes
1answer
1k views

Adding Sub Menu In a theme which Do not have Menu Options

I am a new bee in wordpress but i can code in PHP. I have a free wordpress theme installed on my local host. The theme Do not have an option to add to add menu/sub menu in it. It comes with predefined ...
1
vote
1answer
483 views

next_post_link() on custom menu structure

In a blog, I am using next_post_link() and prev_post_link() extensively on posts. I also have a number of pages that I show in a WP3 menu. They are organized in topics and sub-topics e.g. like so: ...
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 ...
0
votes
2answers
998 views

Removing strip_tags not working on nav_menu_description

So I'm adding descriptions to my site's main menus. Checked the box, added the text. Dropped in a custom walker in functions.php. Dropped in a wp_nav_menu call in header.php to call the custom walker. ...
1
vote
1answer
153 views

menu link to custom post_type?

is there a way to add a custom post_type (directors) link to a menu? I can add the individual director posts but not the link to all of them. I'd like to avoid using custom links as this will be ...
-1
votes
1answer
494 views

Should I custom code drop down menus or use a wordpress plugin?

EDIT -- Hopefully my question is more clear What is the best practice for wordpress dropdown menus: Custom CSS (editing styles.css) Using a WP Plugin I'm leaning toward coding it myself from ...
0
votes
1answer
872 views

wordpress superfish dropdown menu

I am learning how to integrate superfish drop down menus in wordpress and i am following this tutorial http://kav.in/wordpress-superfish-dropdown-menu I am using this theme with superfish integrated ...
0
votes
1answer
225 views

Give Children Unique ID's

Is there a way I can give each wordpress children (subcategory UL lists) unique ID's? I'm creating a dropdown list for subcategories and I want to position them but :nth-child isn't supported by ...
2
votes
1answer
69 views

What Defines What Category A Post Picks (if in multiple)

If I have a post in multiple categories, what defines what category shows up in the URL? Assuming I have permalinks setup as /%category%/%postname% is it the ID or the name?
0
votes
1answer
374 views

How do I render a navigation menu like my theme does?

I am using the theme suffusion, and I'm trying to add a custom navigation menu to only one of my pages. I've managed to get it almost working using this in my page template: if(is_page('123') { ...
1
vote
2answers
962 views

Using default WP menu functionality to link to custom post-type listing?

I'm completely starting over with a wordpress project that began a couple of weeks ago, and basically i'm totally discovering wordpress, so please bare with me. I might be completely misunderstanding ...
0
votes
2answers
3k views

How to remove div container in custom menu?

all As per my html theme structure i do not want to add my menu <ul><li> under <div>. I am using <?php wp_nav_menu( array( 'menu_class' => 'tlm', 'theme_location' ...
23
votes
2answers
11k views

How to add a custom field in the advanced menu properties?

Is it possible to add a custom field to menu items? What I want to do is be able to add a field for 'French Navigation Label' and a 'French Title Attribute' in the wp menu interface.
0
votes
1answer
214 views

How can I set the first link in my nav menu to simply be a drop-down to some other pages

I want to have a set of ~3 pages in a subdirectory called "about" example.com/about/history example.com/about/program example.com/about/coaches I don't want any about/index.html page, I just want ...
0
votes
1answer
21 views

Is it possible to make the heading on a page different text to the text of the menu item?

Is it possible to make the heading on a page different text to the text of the menu item? I have a page with a very long title and I'd like to make the clickable menu text shorter. Site is here: ...
1
vote
1answer
5k views

wp_get_nav_menu_items how to exclude sub level menu items?

I have the following function to output a custom menu in select format for a responsive design I'm working on. It's working exactly how I want it to apart from I would need to exclude sub menu items. ...
0
votes
2answers
160 views

Change div background acording to the selected category

I'm coding a graphic menu that consist in five divs with a background each. On mouseover the background changes and the child div disappears. On click, each one works like a link to the correspondent ...
0
votes
3answers
458 views

How to Structure Pages and Subpages

I'm trying to create a church site using WordPress. The following is a small sample of the page structure I'm trying to create: About Staff Statement of Faith Contact Ministries Furnace Prayer ...