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
335 views

Lightword Theme - only one menu item

Since I am pretty new to WP and the whole stuff i ran into a problem. I am using the pretty-well known "Lightword" Theme. And today i've upgraded to the newest version. It's now possible to add/edit ...
1
vote
1answer
694 views

Menus - Open items in new tab/window?

I have 3.1.2 running with the Boldy theme. Site link. I have a menu that has a number of external links listed in the items. By default, these items do NOT load in a new tab/window. There is no ...
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 ...
1
vote
2answers
4k views

wordpress custom walker for thumbnails with custom menu

I'm still very novice at PHP so any help is greatly appreciated. Typically I have found the codex to be very helpful but it appears custom walkers may be outside its scope. I'd like to have ...
0
votes
2answers
5k 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
1answer
790 views

Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection

My blog's page hierarchy is as follows: - Home - About - Movies - - General - - All Movies - - Rules Right now, I have a horizontal menu showing Home | About | Movies, and if I hover Movies I get: ...
2
votes
2answers
535 views

Directing a page to a default subpage

I would like to introduce page-hierarchy navigation in my WordPress blog using subpages. So each page may have sub-pages, but I'd like that when a visitor clicks on a page header he will be redirected ...
3
votes
4answers
4k views

remove last separator?

using; $args = array( 'menu' => 'mainmenu', 'container' => 'ul', 'menu_class' => 'span-10 clearfix', 'after'=>'/'); wp_nav_menu($args); which gives me; london/munich/artists/fairs & ...
2
votes
1answer
2k views

Unclickable Menu Item Label in Custom Menu with Clickable Children

I need some help with a custom menu. I'm using WP 3.1.1. I need to create an unclickable placeholder in the nav menu. So, the children will be clickable, but the "title" in the nav bar is not. For ...
5
votes
2answers
1k views

How can I create an auto-populated menu that is automatically assigned to a location?

I'm trying to add BuddyPress nav menu support to my theme and, unfortunately, BP's template tags still aren't fully up to snuff. (Basically, if you're not making an explicit child theme for the BP ...
0
votes
1answer
1k views

Menu page with minimum capability as 'Subscriber' doesn't allow 'Admin' to access it?

I've added a separate menu page (an object page) with minimum access level required as 'Subscriber'. I'm doing this because I'm registering new users and they'll be 'Subscribers' with an extra ...
-5
votes
1answer
783 views

How to create an automatic MultiColoumn MegaMenu with Categories WordPress

I'm looking for an easy to use step by step guide on how to create a MultiColoumn menu for categories on wordpress. Actually in my blog I have 10/12 "main" categories and a couple of them have ...
15
votes
4answers
12k views

How to Hard Code Custom menu items

Is there any way that i can hard code the custom menu items when first theme installed? I am creating a theme which will automatically make some common pages when installed. So I need to know if I can ...
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 ...
0
votes
4answers
182 views

Making a new post visible on a specific page

I am creating a wordpress site which will have different sections , which will essentially be pages which can be accessed through a top level menu. Now when I make a post, I dont necessarily want all ...
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
1answer
91 views

Prevent custom post type from showing up in custom menus

How do I do that? Any custom post type I register shows up as a meta box on the menu page...
4
votes
1answer
615 views

Attaching a navigation menu to the admin bar?

I have seen a number of solutions of how to manually attach links to the new WP admin bar, but I need to make this much easier for my site admins. It occurred to me that the easiest solution would be ...
0
votes
4answers
5k views

List WordPress Custom Menu's active parent level's children as separate menu

I have a structured Custom Menu: parent 1 children1_1 children1_2 parent 2 children2_1 children2_2 parent 3 parent 4 children4_1 etc. I want the following: on every page, the parent ...
4
votes
3answers
3k views

wp_nav_menu sort order?

Hey Guys, I'm trying to build a right aligned, wrapping capable wp_nav_menu powered menu. Is there a way to have it rendered backwards, so that float: right; would work and not mess up the order? I ...
1
vote
2answers
1k views

Custom CSS class or ID on menu items that have a Submenu

If I want to apply a style to only an item in a menu that has a submenu, how can I select that with CSS?
3
votes
1answer
3k views

Whats the difference between current_page_item and current-menu-item

Whats the difference between current_page_item and current-menu-item when using Custom Menus .current_page_item{} // Class for Current Page .current-cat{} // Class for Current Category ...
0
votes
1answer
395 views

Determining the “current_page” in WordPress Custom Menus

I am using WordPress Custom Menus. I have links like Home - Rendered using home.php Blog - Rendered using page-blog.php with WP_Query to get blog posts Services - Page Portfolio - Rendered using ...
2
votes
1answer
2k views

BuddyPress - How to add logout in nav menu

How to add a logout option to the main nav menu (not to the top bar) in BuddyPress?
2
votes
1answer
156 views

Add a specific category at a specific place to the menu that uses wp_list_pages

I have a main menu where I display pages. All the pages have associated sub-pages, however in the menu some of them are displayed by themselves without sub-pages and some are displayed with a submenu ...
1
vote
2answers
964 views

Minor css-change based on topmenu - how?

I want to make minor css-changes based on the choice of the top (root) menu. What's the proper way to handle this in WP? //edit// It's a website (pages), no blog, and basically, the colors of some ...
48
votes
3answers
54k views

Menu items description? Custom Walker for wp_nav_menu()

Normal Wordpress Menu looks like: Home | Blog | About us | Contact But I've seen many pages with descriptions under these links: Home Page | Our Blogs | About us | ...
0
votes
2answers
261 views

how to change menu titles

At the top of this website Wordpress answers is 6 menu items in the header Questions Tags Users Badges Unanswered Ask Question I need to change these on my website homesfriscotx.com ...
2
votes
1answer
322 views

How to assign a WP 3.0 custom nav menu to a theme's navigation menu location via script?

I'm using this script inside a plugin to create a new custom menu on the fly and assign a page to it... $menu_id = wp_create_nav_menu( 'header-menu' ); $menu = array( 'menu-item-type' => 'custom', ...
1
vote
2answers
408 views

Main menu - get rid of titles?

I've got a default main menu: wp_nav_menu(); But it gives a list of links in a form: (...) <a href="link" title="PageName">PageName</a> (...) The very important question is, how to ...
0
votes
2answers
848 views

How to add pages to custom menus on the fly [duplicate]

Possible Duplicate: Can I add pages to my custom menu via script? My theme has a custom menu called "Custom Header Menu" and i've got a plugin that sets up site defaults and creates my ...
3
votes
2answers
7k views

Get the ID of the page a menu item links to?

I am currently using a custom walker to customize the output of wp_nav_menu(), and I am trying to add additional information to the <a> tags. What I want the output for each menu link to look ...
2
votes
3answers
2k views

wp_nav_menu always falls back to a menu

hey all, i'm writing an automated function that generates a menu from a function. it calls wp_nav_menu on each item from an array, because i want this to be dynamic. the problem is, no matter how i ...
1
vote
1answer
220 views

Can I add pages to my custom menu via script?

My theme has a custom menu assignment... function my_register_my_menus() { register_nav_menus( array('header-menu' => __( 'Custom Header Menu' ) ) ); } ...and I'm creating an "installer" ...
0
votes
1answer
382 views

New wp menu menu styling

Ok ,i am not a great fan of the menu of WP, but now it manage this inside pretty ok, i have to make theme that use that menu. Now for styling i am a bit challenge... here is the problem... the menu ...
0
votes
3answers
933 views

WP navigation list classes

I'm using this code to display my menu: <?php $menu_args = array( 'container' => '', 'menu_class' => '', 'menu_id' => 'main-menu', ); ...
0
votes
2answers
1k views

Sitemap Page build from Menu?

Is there a plugin available that creates a sitemap from the default menu, e.g. as shortcode or requestbale URI?
1
vote
1answer
729 views

wp_nav_menu google analytics event tracking

I've got a WP3 custom menu, with a custom link in the menu, How can I add google analytics event tracking to that custom link. Thanks Alex
0
votes
2answers
1k views

confused about wp_list_pages() function - how to display selected top pages with all their subpages

I'm a bit confused about wp_list_pages() function. Lets say I have 3 top level pages (with no parent) and each of them have some sub-pages: page 1 [sub-pages: 1.1, 1.2, 1.3]; page 2 [sub-pages: ...
4
votes
3answers
7k views

wp_nav_menu remove class and id from li

I'm new to wordpress and trying to learn my way through from making a theme. Right now I am using wp_nav_menu to generate my menu My menu consists of pages and categories However, the default ...
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, ...
0
votes
1answer
516 views

Using wp_list_pages() after calling query_posts()

It's possible that I'm just doing this wrong, so feel free to let me know how you would solve this problem. I have a mostly page-based site, but there are a few "pages" where my content is coming ...
0
votes
1answer
246 views

Is there a limit to number of pages displayed for selection in custom menu?

I recently started working with a client who has over 400 pages on their WP site (yes, pages, not posts). Their menu needs to be redone, so I decided to go the 'custom menus' route. However, not more ...
1
vote
1answer
1k views

Error “The given object ID is not that of a menu item” on menu with 40+ items

When ever I try to add menu items past about 40 I get an error "The given object ID is not that of a menu item" and many of my menu items will disappear from the menu at random. The site I am working ...
1
vote
3answers
898 views

Custom Menus: dynamic highlighting problem with custom home link

I'm currently implementing wp_nav_menu - all has gone well save for dynamic highlighting. The menu code looks like this (when home, which is a custom link, is selected): <div ...
1
vote
1answer
1k views

Dynamic sidebar nav with current page highlighting

My sidebar loops through all of the child pages based on the parent page. For example, if you're in the "About" section you'll only see "About" child pages in the sidebar. My problem is that I have ...
6
votes
3answers
8k views

How to add a Custom Link to a Menu with an URL that is relative to the blog URL

Part of my work is to create Wordpress websites. I usually work on my laptop until I have something good enough to be uploaded to the test server where the client reviews it. I create a VirtualHost ...
11
votes
1answer
18k views

How to add posts to custom menus?

I'm just beginning to work the "Custom Menu" functionality that was introduced in 3.0 into my theme. I like everything about this new capability and API, with one exception: Why no posts? I can ...
0
votes
2answers
106 views

if (has_custom_menu())?

I've taken this line from header.php of TwentyTen where its loading the custom menus... <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu ...
1
vote
1answer
2k views

How to remove class attributes from custom menu markup?

Just playing around with adding "custom menu" support to my theme. I'm super excited about it. HOWEVER, Check this out > <ul id="menu-my-main-menu" class="menu"> <li id="menu-item-12" ...