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
1answer
207 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
68 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
329 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
951 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' ...
21
votes
2answers
10k 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
207 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
418 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 ...
0
votes
2answers
890 views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
1
vote
1answer
475 views

add_submenu_page function to show videos table

wondering if its possible to show the attachments admin list for videos by using a custom menu link? Any pointers welcome! D. add_action('admin_menu', 'mt_add_pages'); function mt_add_pages() { ...
3
votes
2answers
775 views

Show child pages by menu order using Superfish Dropdown menu?

I'm using the superfish dropdown menu to create a drop down menu. It's created the menu fine showing all the parent pages with the child pages in drop down's below. The only problem I have is that ...
1
vote
4answers
2k views

When at / ( or “home”) my menu doesn't get a current-menu-item class

I'm a wordpress noob tweaking a theme, so I'm trying to understand how it works. I've read about 10 related posts in SE but don't get it yet. My problem is as follows: header.php seems to generate ...
0
votes
2answers
3k views

How can I add a menu item to the admin area?

I've used almost all of the Wordpress example code but it still doesn't work. I've put the php file under wp-content/plugins/menuitem/ .The code is simple <?php add_action('admin_menu', ...
-1
votes
1answer
109 views

How can I alter the visible menu according to which level I am on [closed]

I want to be able to alter what is visible in the menu according to which level in the site structure I am on, for example on top level page:- Home Level 1 page (Current) -Level 2 page -Level 2 ...
0
votes
1answer
301 views

ID of parent Menu

I'm trying to assign a different ID to each sub-menu wordpress generates using the wp_nav_menu function. As it is, wordpress assigns the same class (sub-menu) to every sub menu generated. <ul ...
1
vote
2answers
308 views

Can only get one of two custom menus to display

I'm a wordpress beginner and at the moment struggling to get to grips with custom menus. I have created two menus. Wordpress tells me the theme supports two menus. I have <?php ...
2
votes
1answer
906 views

Manipulating menu HTML

My site's menu uses the built-in menu under Appearance >> Menus. I want to make a very simple change: I want to wrap each of my menu's second-level ULs in a DIV. What's the simplest way to accomplish ...
0
votes
1answer
50 views

Most allowed Taxonomies in Appearance->Menus

I am managing a large list(300) of "places" taxonomies, and I need to create a menu with those places. the WordPress menu system seems like the way to go but when I save the menu I am getting a PHP ...
0
votes
1answer
377 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' ) ); ...
20
votes
2answers
19k views

Any docs for wp_nav_menu's “items_wrap” argument?

I'm using wp_nav_menu and am trying to create custom output for the sub-level drop downs. I came across the "items_wrap" argument but there's really not much information as to what it is, how it ...
1
vote
2answers
127 views

Why am I timing out when using the Menu Editor?

I'm using a more or less fresh local install of WP 3.3.1. A few days ago I set up a couple menus (Appearance > Menus) without a hitch. Today I tried creating a new menu and add a page to it, but the ...
2
votes
3answers
5k views

Hide Admin menus per role in Wordpress

I am trying to hide a certain amount of menus for a client. Right now I am using the following code and it is doing its job well, but it removes it for everyone as far as I can tell. As in all roles. ...
0
votes
1answer
895 views

nav-menu-template and columns in sub menu

I am trying to use the wordpress menu setup and have a working horizontal menu with a drop down submenu. Unfortunately the sub enu is quite long so I wanted to split it into columns I can do it if I ...
2
votes
1answer
1k views

How to get custom post type menu_name?

I'd like to show the post type of a post, you can do that with get_post_type(), but in my case the names are not pretty (for ex : p_project_plans). So instead I thought I'd show the asociated ...
1
vote
1answer
94 views

Operable default menu *and* custom 3 menu

OK, this is a basic question...I'm upgrading a theme I built (from scratch) to support 3.0 menus (finally). With the new wp_nav_menu tag, as expected, the tag's default container is added when a ...
0
votes
1answer
294 views

current_page_item and custom post type?

I have a page on my site that lists all posts for my custom post type 'Literature'. However when I click on one of the posts, the highlighted active menu item changes to 'Blog'. How do I assign ...
0
votes
2answers
579 views

Problems Displaying Multiple WP Menus

Not sure where my error is (I did piece most of this together from snippets on different websites,) but when I test my theme, only "Left Menu" displays. There are definitely two menus, however where ...
0
votes
1answer
241 views

wp_nav_menu including Skype URL

If I try to add a skype username as the URL for a wp_nav_menu item, the item is saved but the URL is not. The username URL is in the following format: skype:example?call Any thoughts on add skype: ...
1
vote
1answer
1k views

Overriding the currently selected menu item

I have a WP 3.x site that I'm using mainly as a CMS. The menu links to the various WordPress pages. One of the pages, "News", is the "posts" page. However, when clicking on one of the posts on the ...
0
votes
2answers
96 views

Understanding with this Wordpress code

I'm new to wordpress and tried to Google and looked up codex but it didn't help. I downloaded a free theme from Github and I'm trying to learn how to make a theme by looking at its code. In the ...
5
votes
3answers
720 views

Can I display submenus in groups, using wp_list_pages?

Say I have top-level(parentless) pages called Fruit, Animals, Cars. When, say, Fruit is selected I would like to show links to the individual fruit pages below. I would like to be able to dislpay ...
1
vote
1answer
1k views

How can I remove the “updates” menu in the Wordpress Admin panel?

How can I remove the "updates" menu in the Wordpress Admin panel?
3
votes
2answers
298 views

Exclude one item from wp_list_pages( $args );

I have a menu that is currently shown with wp_list_pages( 'title_li=' ); This shows all the sub pages from all the pages in the menu. I want to exclude a page with id 56 from displaying its sub ...
4
votes
2answers
5k views

Adding a Custom Post Type into the menu screen

I need a way of adding custom post types to the "Appearance-->Menus" option in Wordpress. i have created a custom post type with: register_post_type('produksjoner',$args); All examples I find just ...
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 ...
-2
votes
1answer
429 views

how to add multiple menu in custom menu widget?

how to add multiple menu in custom menu widget? i am using this theme. I am new to wordpress and i am unable to sort it out.
-1
votes
1answer
2k views

Make a Custom template for a specific category in wordpress

I am having issue with a custom category template. I want to create a new template for my specific category "VIDEOS" so that all posts under this category show in new style. Basically, i want to show ...
1
vote
3answers
316 views

How to remove some specfic navigation links only from selected page/pages?

For example: In the client site I have 5 page 1) Home 2) product 3) Services 4) Contact us 5) Blog Only from the blog page I want to remove 2) product and 3) Services but not from other pages. Is ...
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 ...
0
votes
3answers
1k views

Three menus - parent / child / sibling

Firstly, apologies for the terminology used here, I will try to be as descriptive as possible. I am trying to create a menu system that will achieve the following: List top level pages as one menu ...
0
votes
1answer
148 views

Theme Options Menu Item - Permission Issue

I am trying to create a theme options menu item for my custom theme. However, when I add the following piece of code in the functions.php file... add_menu_page('Page title', 'Asteria', ...
-1
votes
1answer
3k views

Is there any way to change the CSS class applied to 2nd level sub menu ul's?

I'm running into a problem trying to style a drop down menu with a second level. Wordpress seems to apply the same .sub-menu class to any and all sub menus, and I can't figure out a reliable, ...
1
vote
1answer
256 views

Menu item with no page, but with dropdown

I am using 2010 theme menu. Is it possible to have a menu item that has a drop down when hovered, but will not click though to a page/post. Just a dropdown, using the wp_nav_menu.
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
1answer
956 views

Add custom ID to wp_nav_menu list items

Is it possible to assign specific ID's to wp_nav_menu list items? For example, if my menu contained links for "Home", "About" and "Contact", could I assign the "Home" list item and ID of "home"?
0
votes
2answers
295 views

Drop down menus css in custom menus

I have created some pages and some pages have children.When i go to the wp admin menu,i create new menu and drag all the pages,including ones with children pages.I notice that the menus are all ...
0
votes
1answer
870 views

Drop down menus with wp_nav_menu or wp_page_menu

i have some doubts on what i am actually supposed to use to create drop down menus.By just looking at theme twenty ten,i have , <div id="access" role="navigation"> <?php /* ...