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

Add Menu Item in Specific Order

I am using the code below to add a Login/Logout menu item to WordPress programatically. I am trying to figure out how to specify the placement of this menu to be in the #2 position. IE - Main Menu ...
0
votes
1answer
51 views

“Static” Child Menu with Accordian

I'm looking to create a child menu and none of the examples in the Wordpress codex seem to do what I'm trying to create. I have a main horizontal nav bar, which is fine. When clicking on a top-level ...
0
votes
1answer
34 views

Custom Menus and taxonomies

OK I just started using WordPress not very good and I have a menu problem I can REALLY use some help please. I am working on a website and it has multiple locations, and not all the locations sell ...
0
votes
1answer
92 views

wp_nav_menu(); Outside WordPress installation

I wanted to use WordPress menu management then show it on outside wordpress installion php file with html but I got this error PHP Fatal error: Call to a member function get_queried_object() on a ...
0
votes
1answer
50 views

Unable to add extra elements to the main navi (wp_nav_menu_items)

I'm trying to get the list of authors to automatically appear on the main navi (without having to manually add them one by one as they are created). So far I added this on my functions.php, but no ...
0
votes
1answer
19 views

Placing generated list into drop-down on custom menu

I'm trying to add categories and authors automatically into the custom menu as they are created (avoiding having to do it manually for each one). I've modified Alex Mill's code and got to display a ...
0
votes
1answer
39 views

Programatically retreive page content from its template page

I am building a menu and representing it to the front-end in Accordion style using the foundation front-end framework. The Wordpress admin drags and drops menu items (pages, posts, custom posts, ...
0
votes
1answer
34 views

How to add plugin activity in the menus?

I have Installed CM answer plugin, but how can I add that as a menu at the top? Note: I can install plugin but the problem is that I don't know the way to add the plugin into the menu or a page.
0
votes
1answer
19 views

Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it's submenu ul

I'd appreciate some direction on how to accomplish something with my WordPress menu. I've Googled this for hours without avail. I was to automatically insert a parent link into it's immediate submenu ...
0
votes
1answer
80 views

How to output the menue structured for tabbed navigation?

I've got a design for my webpage that uses tabbed navigation with two levels. In this example 'TAB2' tab is selected and it's children item are desplayed below of it. ˬ ...
0
votes
1answer
34 views

Replace Menu Item with Logged in username

I have a topnav menu item that current says "My Account", I would like to change it so that it functions as: Welcome [Logged in Username] -> My Account -> Logout
0
votes
1answer
168 views

chained drop-down menu for custom taxonomy using chained.js — not quite working

So, Im trying to get a chained select to work to select a state then a city with that state. (2 fields). Here is what Ive got: First my function to create the menu using get_categories(). First ...
0
votes
1answer
164 views

How do I show a different secondary navigation menu for each section of my website?

My site is organised into three sections, like this: Reiki Basics (page ID 499) – page 1.1 – page 1.2 – page 1.3 Practice & Study (page ID 501) – page 2.1 – etc Courses (page ID 471) – ...
0
votes
1answer
86 views

How to include the parent page link in this wp_nav_menu walker

I've got a site with a sidebar of 'sub-navigation' I also need to have those links 'parent page' in the navigation also. So, for example I've got Parent child 1 child 2 child 3 but the php only ...
0
votes
1answer
122 views

How to add nav menu items to a specific position within a menu

I'm adding login/logout links to a nav menu using the following code: function rp_add_login_logout_links( $items, $args ) { $link = wp_loginout( get_permalink( get_option( ...
0
votes
1answer
44 views

How to use page metadata while using wp_list_pages()?

I'm creating my pages links in wordpress, using wp_list_pages(). each link contains an <i> tag which displays retina icons. I want to set a different class for each link in order to display a ...
0
votes
1answer
139 views

wp_nav_menu changed to wp_page_menu

I've styled my navigation menu with the classes of wp_nav_menu .menu_item , .sub_menu etc.When i added a new page suddenly the whole menu was ruined the classes where changed to .page_item, .children ...
0
votes
1answer
56 views

Adding two submenus to a menu

I have a menu(ads) that contains 2 submenus(view and manage). I want that both menu item redirect to different pages, but my 1st submenu(view) is directing to the main menu page.
0
votes
1answer
1k views

Active class to current link

How do I add the active class to the current link that the user is viewing? I have a mixture of pages and custom post types in my main nav menu and I know that wordpress has .current_page_item that ...
0
votes
1answer
317 views

How do I check if a menu exists?

I'm currently retrieving a nav menu based on the parent page's title, and if the page doesn't have a parent then it's own title. global $post; $page_title; if ($post->post_parent) { ...
0
votes
1answer
141 views

Update nav menu item position programmatically

I've tried adding a new programmatically on wordpress with the function: wp_update_nav_menu_item($menu, 0, array('menu-item-title' => $title, 'menu-item-object' => 'page', ...
0
votes
1answer
248 views

Splitting up a submenu into columns, or putting existing menus in another menu as submenu item

I have a menu with a long list of submenu items. I'd like to split that up into columns and the easiest way in my mind would be to have them split up into multiple . Is there a way to do this? ...
0
votes
1answer
25 views

Navigational error

Basically I have an image for a header and I changed the link behind that to go to the main website and was planning on making a news option in the menu to link to the blogs main page, after changing ...
0
votes
1answer
165 views

“Widgets” menu doesn't appear

I'm developing a WordPress theme, which works great on my localhost and one of my live servers, but on my other live server the Widgets menu (from Appearance) doesn't appear. And yes, all 3 servers ...
0
votes
1answer
22 views

Right way for setting categories

My site follows this hierarchy HTML5 + Themes Resources Books Tools Wordpress + Plugins Themes Tools Books jQuery + Plugins Tools books and the same combinations for CSS3, SEO and others, ...
0
votes
1answer
70 views

How To Conditionally Change Menu In Same Theme Location

Is it possible to change to a different menu using conditional tags but using the same theme location? I have 2 menu's created which I want to display conditionally in the same them location which is ...
0
votes
1answer
895 views

Use WordPresss menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
1answer
32 views

How to avoid website url appending problem in wp site?

On localhost when I opens my site (Ex: http://example.com) and when I select any navigation menu then the url of my selected navigation menu appends the previous url. some what like this ...
0
votes
1answer
112 views

How to make a page to not appear in the menu when created?

When one creates a page in the Dashboard (Pages -> Create new) it always appears in the menu and that is the way it should be. But now I want to create a page that does not appear in the menu at ...
0
votes
1answer
833 views

Add id to menu items in wp_nav_menu

I'm using wp_nav_menu in Wordpress to create my navigation The output is similar to this(I have removed href links) <nav id="pageNav"> <ul id="menu-headernav" class="menu"> ...
0
votes
1answer
74 views

Menu item not created on theme activation

On theme activation the following code doesn't create my menu with the 'New Page' item, the menu is created and the location is assigned to 'submenu' but no menu item of my newly created page? What ...
0
votes
1answer
96 views

Hard coded main navigation

Theme twentyeleven Version 1.5 HELP PLEASE I have received an answer from @Mayeenul Islam but this has not resolved my question, if I can't make the navigation show active that's not the end of ...
0
votes
1answer
37 views

Problem with custom menus

On the menu, I'm talking about custom menus, I have a footer with several columns, each column will have a list of items, each column menus needs to be updatable from the menus option on wp admin, so ...
0
votes
1answer
86 views

WP NAV MENU - Dropdown always showing

I'm having some trouble getting the wp_nav_menu to work properly. This is the first time I have worked with this and for the most part it has all come together. My only issue that I am having is with ...
0
votes
1answer
452 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
0
votes
1answer
277 views

JS this.href not getting link from menu item

I have a script to fade in and out the page container when a link is clicked in the nav. I have attached the script to the .menu-item class to target just wordpress menu links. The script itself seems ...
0
votes
1answer
107 views

Adding parent custom post type menu option

random problem for me here. I have several custom post types registered to Wordpress and I want to add the archive pages to the menu, but I do not want them to be static links. Is there any way to ...
0
votes
1answer
105 views

learning OOP with wordpress plugin

I used to develop in functional design so far and I am now learning OOP. I stumbled upon following problem. Sometimes in OOP a function needs to send and argument as an array. Example. I want to ...
0
votes
1answer
23 views

menu items outside of blog

Is there way that I can echo out my wordpress menu items to a main site menu. The wordpress install runs in a subfolder of my main site. I thought there might be a way to do this that is similar to ...
0
votes
1answer
20 views

Display same menu for parent and all its children

I have three main directories in my site, and I'm wanting to display one unique menu for each directory and display it on each child of that directory. I'm thinking I create my three custom menus, but ...
0
votes
1answer
64 views

wp_list_pages - show pages immediately 1 level below current level

I'm setting up an events page in a wordpress site I'm building. Let's take a look at the page menu hierarchy: First of all there is a Events landing page. It will display four regions where events ...
0
votes
1answer
18 views

How to use my custom menus as seperate pages?

I want my site to have different pages, so basically, I want to make it that when you select a menu, it takes you to a different part of the site.. with different information that I have typed in.. ...
0
votes
1answer
46 views

adding a numbers to a item from navigation menu

I search in Internet but i didn't find a good documented way how to add to item from menu a number , my current menu is like Item1 Item2 Item3 , I'm calculating with WP_Query how many post for ...
0
votes
1answer
83 views

Walker for menus

I want to modify all of my <li>'s classes and ids, but the function wp_nav_menu() does not let me do so, so I think I need to use a walker. I am pretty new in OO, so using an object is not ...
0
votes
1answer
159 views

Rogue current menu item class in wp_nav_menu()

I am working on a 'from scratch' theme which has a simple wp_nav_menu call; wp_nav_menu(Array('menu_class' => 'nav', 'container' => FALSE)); On standard posts, archives and pages this ...
0
votes
1answer
105 views

How do I separate link levels in a custom menu walker?

I am trying to build a custom menu walker and I am unclear on how I would be able to build a UL for top level menu items and a separate UL for all menu items of lower levels. Essentially I am trying ...
0
votes
1answer
167 views

multi level menu not working and not displaying correctly

I have created a multi level menu with wordpress and no matter what i try the menu will not display correctly. here is the genereated menu <div id="cssmenu"> <ul class="menu" ...
0
votes
1answer
207 views

Sub menu do not hide

I have a menu with a sub menu. The sub menu open all the time in the left side of the window. When I put the cursor on the menu, the sub enu appears under it as it should. I don't understand what is ...
0
votes
1answer
1k views

Sticky menu for WP custom menubars

This seems simple, except that I am not able to figure it out. In a wordpress theme, how can I make a custom menubar below the header image stick at the top after scrolling down the page? Example ...
0
votes
1answer
152 views

How do I move menu to the bottom in Custom Community theme?

I am new to Wordpress and created the following website: www.sugarhausbyamy.com I would like to move my menu to the bottom of the screen. Is there an easy way to do this? I would also like to ...