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

Custom theme - pages in menu

I am glad for the opportunity to be a member of this community. Lately I decide to start learning wordpress and theme building so this is my first post here. I read some tutorials around the net about ...
1
vote
1answer
181 views

I'm having a lot of trouble since upgrade to 3.0.1 with get_page_children() function

I use the get_page_children() function to create a sub_nav for a designer client I do work for. She uses the Spry Assets flyout JS that DreamWeaver creates, so I have to manually do the menus like ...
10
votes
9answers
4k views

Adding first / last CSS classes to menus

is that possible, without javascript hacks? like this: <ul class="my_menu"> <li class="first"> ... </li> <li> ... </li> <li> ... </li> <li ...
0
votes
1answer
183 views

Unable to nest categories in menu

I have an issue with the new custom menu in WP3. Suddenly the nesting of categories stopped working and even though it's possible to nest them in the UI, when I press Save, then they all go back flat. ...
4
votes
3answers
4k views

non-clickable placeholder in the menu

well, I really would like one & more of my top-level menu items (parent menu items that has child menu items) to be non-clickable, so that visitors can only click on the child menu items...could ...
2
votes
1answer
319 views

Where do custom menus get constructed?

I've created a simple menu in wp-admin>appearance>menus called main-nav. Works fine. However, I'd like to add a custom element to the end of the menu... a search box like the search box in the ...
1
vote
4answers
4k views

How do I get my wp_nav_menu single category page to highlight the parent?

With the new wp_nav_menu system, it is possible to add a category as a menu item, so in my example I have a 'news' category, which is a submenu item of 'About'. About (page) --news (category) ...
2
votes
2answers
662 views

Renaming Menu Item within Admin Menu Section for a Custom Post Type?

I have a feeling this is a bug. When you create a new custom post type it does not seem possible to modify the first submenu item text. I am referring to the link which allows you to view the post ...
1
vote
1answer
120 views

How do you cope with the task of adding hierarchy to the navigation menu?

Say we got a theme with a horizontal menu that shows only the top-level pages. How do you manage with the task to make the menu hierarchical, adding subpages? Any appropriate plugins for that? If ...
2
votes
3answers
349 views

How do I add a post to a menu

I'm trying to get WordPress to highlight a specific item in my menu when a post (any post) is viewed. I'm thinking that adding the post to the menu item, then suppressing display of sub-menus might ...
1
vote
2answers
421 views

How to generate a list of child pages, and use some of their custom fields?

I have a page structure like this: -Home -Cars -Volvo 640 - Pics - Info -Porsche 911 - Pics - Info I'd like to generate a list of cars on the Cars page of all the cars (which are ...
6
votes
2answers
6k views

How to manually specify the current active page with wp_nav_menu()

Is there a way of manually specifying which page is currently "active" when using wp_nav_menu()? I have a "Products" page, and on that page I have links to various (dynamic) custom taxonomies. When I ...
14
votes
6answers
14k views

Changing the Order of Admin Menu Sections?

I am getting a bit frustrated over here after having spent a few hours trying to accomplish this fairly simple task without any luck. Essentially I have 5 custom post types which I created and all I ...
0
votes
4answers
2k views

Listing Child Pages in a Certain Order?

I'm trying to show child-pages in a certain order, in a list. This is my code to output the pages as a list $parent = $wp_query->post->ID; ...
16
votes
2answers
5k views

Adding an Arbitrary Link to the Admin Menu?

Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google? In my ...
3
votes
4answers
5k views

wp_nav_menu() custom container and container_id

So today I started work on my first Wordpress theme and so far it's been a lot of fun. However, I have had difficulty in getting wp_nav_menu() to do what I want. Here's what I want: <nav ...
3
votes
1answer
3k views

Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?

As part of a theme for a client, I want to be able to show a custom menu (defined via the admin) in a select box that automatically changes pages after changing the selection. Is there a plugin (or a ...
0
votes
2answers
120 views

Automatically going to the first page in a hierarchy?

Let's say I have a website about different types of cars. The structure is a little like this: -Home -Cars (shows a submenu with a list of cars, ie Volvo 850, Porsche 911 ) -Volvo 850 overview (the ...
1
vote
1answer
4k views

How to make a custom menu based on a category or tag?

I'd like to have a sidebar widget that has my latests featured posts, which would be marked as a category or tag. Is there a way to do this with the new custom menus, and if not, is there a plug-in ...
10
votes
4answers
4k views

Adding an Archive of Posts to the Navigation Menu in WordPress 3.0

Hay all, I'm playing around with WordPress 3.0 and two (2) of the new features, Custom Post Types and the Menu Editor. I've started off by creating a new post type called "products", as you've ...
1
vote
1answer
1k views

How can I detect whether a BuddyPress page is active from within my theme?

I'm trying to work sub-menus into my theme but am running into issues when navigating to BuddyPress pages (as opposed to standard WP pages, posts, etc.). Basically, what I want to do is have pages ...
9
votes
2answers
9k views

Generate a Menu that Displays Child Pages using wp_list_pages() with the New Menu Functionality in WordPress 3.0?

Previously, I was able to selectively load child pages for a currently-selected parent page using logic such as: if( $post->post_parent ) { $children = ...
5
votes
6answers
2k views

Why do Custom Nav Menus generate so many classes on list items? Can I manage this somehow?

Below is an example. 3 classes attached to each item, except current item, which has 6. Can I pare this down somehow? <ul id="menu-global-nav" class="sf-menu"> <li id="menu-item-63" ...
4
votes
3answers
553 views

How do I add support to my theme for custom menus?

I've read a few tutorials on how to add the functionality of the custom menus added in version 3.0 to my theme but they all seem to differ somewhat, and I'm not sure whether they contain superfluous ...