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
3answers
2k views

Removing specific menu items?

I used the following to remove certain menus for the "editor" function remove_menus () { global $menu; if( (current_user_can('install_themes')) ) { $restricted = ...
0
votes
1answer
12k views

Creating Multiple Menus when using the TwentyTen Theme?

How to get multiple menus in TwentyTen theme?
0
votes
3answers
2k views

current-menu-item class for custom post type parent

Im having a problem with my menu and custom post type. I have a custom post type of "services". I have created new page for it called Services. On that page Im displaying a list of all the post from ...
0
votes
3answers
41 views

How to rapidly create a dummy menu?

I want to create a dummy menu with 1 or 2 level of depth. I know I can create the menu via the administration module, but I want to know if there is something I can use to generate fast a dummy menu. ...
0
votes
1answer
104 views

Using _s theme, menu changes do not affect header menu

I'm using the _s theme and seeing the header menu point to 'Home' and 'Sample page'. in functions.php, we have register_nav_menus( array( 'primary' => __( 'Primary Menu', 'mytheme' ), ...
0
votes
2answers
331 views

Change class-name on “current_ancestor” in wp_nav_menu

Im working with a project where i want the wp_nav_menu to output other css classes for current_page, current_ancestor and remove other stuff like page-id and menu-id. I have get some stuff working ...
0
votes
4answers
1k views

how to assign an ID to a wordpress menu

The following code does not produce a UL with ID of "nav". It just produces <div class="menu"><ul> This is the code: wp_nav_menu( array( 'theme_location' => 'menu-1', ...
0
votes
2answers
684 views

wp_nav_menu with icon

When I use this code: <?php wp_nav_menu( array( 'theme_location' => 'slider', 'link_before' => '<img src="'.bloginfo( 'template_directory' );.'/images/icon.png" alt="" />' ) ); got ...
0
votes
2answers
168 views

a better menu, menu options assistance for WP

So long story short, im a noob WP dev and im like on my 2nd custom WP site so sorry if i sound a bit lost. As i was doing my first WP custom site, i noticed that for example, on the default theme and ...
0
votes
2answers
546 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' => ...
0
votes
1answer
571 views

How to create different menu's for not logged in visitors and for logged in members?

I'm creating a website which will provide services to members and I want to make it so that when a not logged in person comes to the website the menu is specifically designed for sales pages to make ...
0
votes
1answer
177 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 ...
0
votes
2answers
18k views

How to Create a Custom WordPress Navigation Menu with the Code?

Without using plugins, how to create a custom WordPress navigation menu with the code? I have Wordpress ver 3.2.1 and Buddypress ver 1.5.1 I would like to create a menu. I would like to place the ...
0
votes
2answers
426 views

Active Menu Highlighter with Subpages?

my question is... I have 2 pages & 2 subpages in each page. like: page1 -->subpage1 -->subpage2 page2 -->subpage1 -->subpage2 & my Menu is Page1 page2 Now if i select ...
0
votes
1answer
480 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
2answers
2k views

Limit User Iinterface for Admin?

Is there a plugin or a way where I can restrict or limit the buttons on the admin interface for a certain user? For example: for the user who has a role of a writer, he/she can only post content, ...
0
votes
2answers
2k views

WPML Plugin Not displaying multilingual Menus

I'm using WordPress 3.0 Menus, which the WPML (wordpress multilingual) plugin claims to have added support for in a recent release. I am using the most current version of the plugin. My problem is ...
0
votes
3answers
230 views

Two-tone menu items

wp_list_pages seems to print out menus ok, but is there a way to alter the functionality so that i can display the menu in two colors..? So, if the titles of 3 actual pages are: Big Cinema * Monaco ...
0
votes
1answer
921 views

Creating menu and breadcrumb “sections” within Wordpress 3 being used as a CMS

I am implementing WP as a CMS for my church's website. This is the first WP install where I'm doing a lot of the custom coding myself instead of just finding plugins and a stock theme. As I am a bit ...
0
votes
1answer
24 views

Why is only the first operation run in my loop - except for on the last repeat? [closed]

We have a custom walker displaying only the sub menu of the current top menu and while making some changes to it I ran into something I don't get - for some reason only the first echo of each loop in ...
0
votes
2answers
56 views

In the Admin Dashboard, can I choose which sections to display?

For the editor I would just like to display Pages, Posts, Media and Menus. Is there a way of doing this with the functions file or similar? Thanks in advance.
0
votes
2answers
50 views

Can I have a different menu for each parent page?

I have 4 different menus on my website. Right now I'm using the solution to a problem I posted here in order for the menu to display using the CSS framework I'm making use of. Each of these menus ...
0
votes
2answers
126 views

Where is definied the theme location for the main menu in a WordPress template?

I am pretty new in WordPress (I came from Joomla) and I have the following doubt related the Theme Location of the main menu. For example, using the preinstalled Twenty Twelve theme, if in the ...
0
votes
2answers
64 views

Create menu locations for each category in wordpress

I need display a special menu in each category page in wordpress, for example I have 3 category: horse,dog,cat So I must have 3 menu in Menu Settings locations with name: horse,dog,cat with this ...
0
votes
2answers
247 views

wp_nav_menu $theme_location parameter ignored

This is the first paragraph of the documentation of the function wp nav menu: Given a theme_location parameter, the function displays the menu assigned to that location, or nothing if no such ...
0
votes
2answers
189 views

Use another menu when logged in

Before the update to WP 3.6 I could add this code in the header.php of the theme, which made it possible to have another menu when logged in: <?php if( is_user_logged_in() ) { ...
0
votes
2answers
71 views

How can template identify what page it's being used on?

I have a template that is used for many different sections of my site (About, News, etc.). The nav bar needs to show a little graphic arrow below the section you're in. I was passing this via the ...
0
votes
3answers
2k views

get menu id using its name

I have a menu name Social Network. I want to get the menus ID. I tried the following, but didn't succeed. global $wpdb; $menu_slug = 'social-network'; $menu_id = $wpdb->get_results( " ...
0
votes
1answer
2k views

Add custom attributes to menu items without plugin

I'm trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to ...
0
votes
3answers
156 views

Move Sticky Nav Menu Below WordPress Tool bar when tool bar enabled

I've created a sticky menu but its hidden behind the WordPress Toolbar when logged in. How do i move it below the toolbar when enabled and logged in? I was looking for a conditional tag but couldn't ...
0
votes
1answer
49 views

Conditional menu display

I have the line of code below with the intention to display the called menu in every other page except the home page but it still shows up on the home page. Any ideas what the problem could be. ...
0
votes
1answer
211 views

Does the 'nav_menu_css_class' filter accept 2 or 3 arguments?

I've been using the nav_menu_css_class filter in one of my plugins, implemented as: add_filter( 'nav_menu_css_class', 'wbwcrf_nav_menu_css_class', 10, 3 ); function wbwcrf_nav_menu_css_class( ...
0
votes
2answers
94 views

Cannot seem to replace the native menu with the menu I created, so 2 menus appear

Helping a friend w/ a navigational menu on a WordPress PHP site -- called it Primary Menu. I'm trying to override the default navigational menu with the jquery-mega-menu I created in the widget area ...
0
votes
2answers
1k views

register_nav_menus, then create menus programatically

I have a register_nav_menus call in my theme's functions.php: //register nav menu and footer nav. register_nav_menus( array( 'main-nav' => 'Main Navigation', 'footer-nav' ...
0
votes
2answers
189 views

WP Nav menu append to url

Using wp_nav_menu() , how can I append a value at end of each URL? For example, I have the following url: http://www.example.com/ but I have to append a language parameter at the end, so the url ...
0
votes
2answers
1k views

Make pages visible to only logged in members

I want to make a page for each user on my website. When a user logs in, I want them to be able to click on pages that are just designed for them (basically when they log in, I want them to be able to ...
0
votes
1answer
280 views

Give child-categories same class (the parent category-slug) as parent in menu list?

I am trying to do two things, which I have no idea how to do: give child categories the same class as the parent category (which is the parent category-slug) create a menu which displays my ...
0
votes
1answer
2k views

How to style a specific nav menu item?

I have a site, which now have a new registration form and I want to highlight it by blinking the menu item. you can see the site here. I wan to blink "Registration for seminar" item. I am using ...
0
votes
3answers
287 views

Fake mark a menu item as current_page_item/active in Wordpress

I have a custom post type called Books and a page structure like this: Home Products & Services - Services - Products -- Books I am using Wordpress custom Menus for the 1st level navigation ...
0
votes
1answer
672 views

How to develop a menu like wwe.com?

I would like to design and develop a WordPress menu like wwe.com's menu where it has multiple columns, images and a video section in drop down menus. I can create a multi-column menu, but I'm not ...
0
votes
1answer
501 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
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' ...
0
votes
2answers
884 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. ...
0
votes
3answers
4k views

Add Buddypress profile and messages link to Wordpress menu

In the wordpress menu I would like to add a link to the buddypress user profile and messages. These links are dynamic based on the username like, ...
0
votes
2answers
888 views

Add a submenu to wp_nav_menu

I literally don't know where to begin with this. The only wp_nav_menu() documentation I found was http://codex.wordpress.org/Function_Reference/wp_nav_menu and all submenu docs reference a different ...
0
votes
1answer
2k views

Count within foreach loop

How can I echo out the count of within a foreach loop? I want to change the class of the div below so it's menu-button-1, menu-button-2 etc etc: <?php $pages = get_children(array('orderby' ...
0
votes
4answers
1k views

How can I remove a menu item programmatically?

I'm using the built in menu manager to create my menues and I disaply them by using wp_nav_menu(). I'm wondering, is it possible to remove certain menu items from being displayed based on some ...
0
votes
2answers
793 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 ...
0
votes
2answers
1k views

Including link to custom post type in 'wp_list_pages' function

I am generating a navigation menu on my website using the wp_list_pages() function and I also am using a couple of custom post types with a post type archive function. How would I go about adding a ...
0
votes
1answer
595 views

How do I add a custom sublevel menu specified in one directory to a custom top level menu specified in another directory?

I'm working on a plugin that constructs a top level menu and resides within its own directory in /wp-content/plugins. For example, the plugin looks like this: function main_menu() { ...