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 (6)

1
vote
0answers
32 views

Allowing HTML in Menu Descriptions

This has been answered elsewhere, but I am having a problem with the code. I'm using this: remove_filter( 'nav_menu_description', 'strip_tags' ); add_filter( 'wp_setup_nav_menu_item', ...
1
vote
0answers
2k views

Creating a Mega Menu

Currently I am creating a theme based on BootStrap 3.0. And the design I came up with utilizes a Mega Menu Navigation. Right now I'm trying to add YAMM3 - Yet Another Mega Menu for Bootstrap 3, ...
1
vote
0answers
207 views

Walker Class - Check if menu item has description and if so add class to li

I am using a pretty common walker class to pull in the description when I call the wp_nav_menu function. I am using this to add an optional second line for the menu, using the description. This of ...
1
vote
0answers
497 views

wordpress register nav menu not showing in admin

I am using the following code to register a menu for my theme. In functions.php I have written the following: register_nav_menu( 'header-menu', __( 'Header Menu' ) ); When going into wp-admin ...
1
vote
0answers
379 views

Wordpress menu performance is slow when lot of items

I have a menu with more than 100 items in total and it is very slow to manage all those, slow respond and slow saving. Is there any plugin to somehow improve performance and make my life easier in a ...
1
vote
0answers
125 views

Customizing Primary Menu to include custom taxonomy description

I've a hard time implementing the custom primary menu behaviour. I've already: Created a custom post type: products that has a custom taxonomy: product_category associated with it. Activated and ...
1
vote
0answers
953 views

Alternative to wp_get_nav_menu_items?

I have tried out a technique to implement the wp_get_nav_menu_items, however, a child on the level 1 is being nested inappropriately on the menu. Kindly suggest an alternative of how this issue can ...
1
vote
0answers
134 views

Programmatically Add Item to WP Multisite Menus

Does WP Multisite require a specific function in order to programmatically add a menu item to a menu? A friend and I have a plugin that adds a menu item to your menu found here. When we created it we ...
1
vote
0answers
377 views

Navigation menu not being assigned Theme Location

I am setting my navigation menu up using the following snippet in my functions.php. add_action( 'init', 'add_menus' ); function add_menus() { register_nav_menus( ...
1
vote
0answers
52 views

One item not showing when programmatically Generating Navigation Menu

I am programmatically generating a navigation menu with the following.... add_action( 'init', 'register_navmenus' ); function register_navmenus() { // Check if Top menu exists and make it if not if ...
1
vote
0answers
90 views

Creating Category Specific menus

I have a question.. I am trying for this since many days.. but didn't get success. My requirement is say I have 5 categories: cat1, cat2 cat3 cat4 cat5 Now each of category has 'N' number of posts.. ...
1
vote
0answers
100 views

Filter Menu Items by Custom User Role in a page

I want to create a page template where the contents of the menu is filtered. Say, on Template 1, I want only the pages/post created by a custom access role areamanager1 to be displayed on the Menu on ...
1
vote
0answers
151 views

Changing status of Published posts which have less Content to “Draft”

function draftpost(){ global $wpdb; $prefix = $wpdb->prefix; $wpdb->query("UPDATE ".$prefix."posts SET post_status='draft' WHERE LENGTH( post_content ) <500"); } ...
1
vote
0answers
124 views

How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?

I am using "Allure Real Estate Theme for Placester" wordpress theme, I tried the below three methods but no positive result in realtypointusa.com I tried in Dashborad-> Appearance-> Menus and ...
1
vote
0answers
64 views

How to create a Menu based a username

How would I create a menu so lets say user1 sees user1's menu and not user2. or just see there own pages which I assigned to them in a menu. So not user role menu but a username menu. i know it ...
1
vote
0answers
381 views

Single custom post type's menu ancestor/parent is Posts archive page

I have created a theme by copying twentyeleven default theme. I have also installed a module Custom Post Type UI and created a custom post type called "Book". I have gone to Settings -> Reading ...
1
vote
0answers
390 views

Help with walker for nav

For some reason, this walker won't work when I pass in 'echo ' => 0, it always prints the nav, and never returns the nav as a var. I can't seem to figure out where it's by passing that in ...
1
vote
0answers
501 views

Custom Walker for wp_list_categories

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that: <div ...
1
vote
0answers
107 views

Adding menu items?

I'm having a couple issues I can't resolve with my Wordpress site. First of all, I'm using "Weaver II 1.1.3" theme, free version. I recently installed Role Scoper ...
1
vote
0answers
30 views

Create custom page and add it in nav menu by code

I am creating a plugin, and this time it should: create a page and add it to the nav menu, all by code ... Here is an example: http://img823.imageshack.us/img823/8531/09072012205520.png
0
votes
0answers
7 views

Main Pages displaying as Sub-Items

I'm having this issue with a my menu. When I add my normal site pages to the menu they appear as sub items. All links display as normal without any issues and everything appears and behaves without ...
0
votes
0answers
13 views

Highlighting correct path with Wordpress Nav_Menu function

I have created a WordPress site for a client, in which you filter through the navigation menu (set-up in appearance->menu) by revealing hidden items (unordered lists with class "sub-menu (generated ...
0
votes
0answers
10 views

Remove/Disable “Automatically add new top-level pages to this menu”

Is there any way to disable or remove the "Auto add pages - Automatically add new top-level pages to this menu" functionality via a theme? I suppose I could hide it with a bit of CSS, but I'd rather ...
0
votes
0answers
6 views

submenu item under other top level menu and change some fields

I would like to add the 'Add new' user submenu to have a different name(in the menu) and under a custom top level menu that I created. I have removed most of the standard admin menu and replaced it ...
0
votes
0answers
13 views

Menu Item Post variable count way too high, can't save menus

I'm having trouble saving WP menu items and I've done all the usual things as documented here: http://sevenspark.com/wordpress/menu-item-limit and here: Menu Items Disappearing And I know that the ...
0
votes
0answers
8 views

Set rules for file uploads to dynamically hide/show menu items

I am curious if anyone has a clue about this? Upload a file. If file meets certain criteria, link the file dynamically to a menu item If file is linked, the menu item will show. Until an associated ...
0
votes
0answers
16 views

Foundation 6 Dropdown Menu & WordPress

I'm trying to incorporate the foundation 6 dropdown menu with WordPress's menu. WordPress currently outputs <ul id="menu-menu-1" class="menu"> <li id="menu-item-24" class="menu-item ...
0
votes
0answers
27 views

Menu permalink structure

so I have this problem... it's stupid one, but I can't handle it properly. On my page www.example.com I need to put big menu structure. I want menu to be structured as ...
0
votes
0answers
25 views

Addressing Child Page from Custom Menu

I build the website of an association with centers in different cities. Each city's pages need their own sidebar. I want to program an automated solution where the editors dont need to select ...
0
votes
0answers
20 views

Why is error shown twice? (how to apply menuitem to menu correctly?)

Starting to create a plugin that adds content and hooks that content into a menu (in this case below I started to add a search-functionality to hook into menu just for testing) if( ...
0
votes
0answers
19 views

Prevent unassigned menu position from showing all pages

This seems like a common enough problem. Perhaps I am using the wrong wording in my search... My theme supports 2 menu positions. I only need 1 menu, so I have assigned it to the vertical position. ...
0
votes
0answers
16 views

How to Use Default Auto-Generated Menu?

I have a site with a decent number of pages (130+) and it is organized using the Parent functionality of each post. This works well. I'm trying to use a mega menu plugin, but it wants me to select a ...
0
votes
0answers
36 views

Query/load only WooCommerce shop categories into a custom landing page?

I want to reuse the WooCommerce shop-categories in a custom grid landing page, but without the product images, as I am using custom images to make the grid wall. What is the best way to do this? ...
0
votes
0answers
9 views

Customer nav menu walker for post type and taxonomy archives

Walkers have the least documentation that I'm able to find, so I've come here to ask how to achieve placing items attached to categories as sub-menus. Let me explain: I have a simple menu that ...
0
votes
0answers
21 views

Show menu from plugin

I would like to include plugin menu into the theme. Did something like this: <?php add_action('after_setup_theme', 'my_load_plugin'); function my_load_plugin() { get_part( 'parts/menu', ...
0
votes
0answers
45 views

How to add mobile only, multi-level menu?

What is the Wordpress way to adding a second menu? Not in the backend but programatically; so that it gets activated only when screen size is certain width. basically two menus- one for full sized ...
0
votes
0answers
24 views

Respect hierarchy when adding all Product category items to a menu

When I go to appearance => menus, to be able to see the WooCommerce categories/subcategories I go to screen options and select product categories. I see the option "Product Categories" on the left ...
0
votes
0answers
26 views

How do I put my Blog posts on two or three different pages?

So my site has a static front page and a blog page on my website, but I would like to show my blog on both the blog page and the static front page. Also, I have several pages representing several ...
0
votes
0answers
27 views

how to made customize wp_nav_menu walker with search box

how to made customize wp_nav_menu walker with search box. <ul class="main-navigation"> <li class="course"> <!-- <a ...
0
votes
0answers
30 views

Add new nav menu item programmatically

I want to add new nav menu item and in the same time create new page, so my questions are: Is it enough to use wp_update_nav_menu_item() to create new page and new item in existing nav menu? And if ...
0
votes
0answers
18 views

Display parent menu item of the walker nav menu item

I have pointed the numeric index in here. each index in described below: 1. It is where the name of the currently active menu displays, 2. It is where the submenu of the parent page ...
0
votes
0answers
24 views

Is there a way to retrieve post meta data from wp_get_nav_menu_object?

I am trying to integrate flexslider into my theme. I want all my post to default to flexslider post and I want to be able to customize the order of these post/slides using custom menus on the ...
0
votes
0answers
17 views

Has there been any improvements to wp's menu handling?

So I've been snooping around to see if there has been any change to how menus work in WP, but I haven't found anything yet. Some of the problems I have expereinced: Menu items still remains ...
0
votes
0answers
39 views

Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error

This is a bug in my WP install that has crept up unknowingly; I can't say for sure when it began. To describe it: there were menus created in the Appearance -> Menus page early in the site's history, ...
0
votes
0answers
11 views

A new post is showing under two menu's, how do I get it to only show under one?

I have recently added two new films to my site 'Hellesylt' and 'Artists on Film' and they appear twice, once under 'Film' and again under 'Photography', the new films do not appear on the drop down ...
0
votes
0answers
17 views

How do I redefine wm_navigation() or wp_logo() within a theme that uses hooks?

What I want to do: Move the title of my website from it's current location to be in the "menu" div so that it is to the left of the menu/page list. Demo page: http://aaronmoore.me/visartsassignments/ ...
0
votes
0answers
11 views

Get object_id with level from custom menu?

I need to get an array from a custom WP menu, which includes page object_id and it's depth/level in menu. I need this to build a table of contents in mPdf. Any thoughs?
0
votes
0answers
33 views

How to create a HTTP custom link in a WordPress menu in a HTTPS site without a plugin

Imagine a WordPress site over SSL. Let's say https://example.net. All the URLs of the site are HTTPS. That's cool. Imagine this site has a WordPress menu and you want to include a custom link to a ...
0
votes
0answers
21 views

automatically add custom taxonomy items into menu

I wish custom taxonomy items to appear in menu automatically. Currently I have custom post type with custom taxonomy. function ales_create_post_types() { register_post_type( 'ales_product', ...
0
votes
0answers
60 views

wp_nav_array() With A Hamburger Menu

I don't understand how the wp_nav_array works even after reading the codex thoroughly and I'm having issues with adding a menu. My html + css looks like this: <!-- Header --> <header ...