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
4k 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
156 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
376 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
772 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
450 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
752 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 ...
0
votes
4answers
1k 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
289 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
294 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 ...
1
vote
1answer
791 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
351 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
17k 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 ...
1
vote
3answers
4k 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
797 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
292 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
481 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
229 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: ...
0
votes
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
92 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
700 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 ...
0
votes
1answer
794 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
280 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
4k 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
915 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
388 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
1k 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
297 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
141 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
2k 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
209 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
1k 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
870 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
285 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
809 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 /* ...
0
votes
2answers
4k views

how to hide submenus for the not active pages

I would like to expand only the active part of the sidebar menu and hide the parts which have nothing to do with the actual selection. Just like how its done on every Explorer like file manager, or ...
0
votes
3answers
3k views

How can I list posts by author?

How can I list posts as sub-items of authors? It should look like: <ul> <li>Author</li> <ul> <li>Post1</li> ...
0
votes
1answer
905 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 ...
1
vote
3answers
3k views

How to count nav menu items?

I'm creating a custom walker for my nav menu. The goal is to split the menu in to columns like so: I can easily determine where I am in the list by looking at $item->menu_order. What I don't ...
7
votes
1answer
4k views

How to add custom post type archive page links to nav menu?

I cannot figure this out. There seems to be no checkbox or anything similar in function to add the newly created custom post type archive page into the menu. Also the link must be active, if you are ...
1
vote
1answer
289 views

Adding all sub-pages to the menu manager

Is there some simple way which would allow one to add a page to a menu (through the menu manager interface) and be able to define if the inclusion of this item should automatically add all subpages up ...
0
votes
1answer
99 views

How would I make a function to dynamically determine if user is logged to change navigation menu text?

I would like to create a function to determine if a user is logged in or logged out. If the user is logged in I would like the navigation menu text to say "My Account" (this is what it currently ...
-1
votes
1answer
62 views

Menu System: Custom Links

Is there a way to set default values for options selected in the WordPress menu system? My example would be if the "Custom Link" option was chosen, can this default to a _blank target? Thanks!