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)

2
votes
0answers
273 views

Add data-icon input to Wordpress custom menu links

I need to add a data-icon="" input to my Wordpress Custom Menu input box thing. This is so I can use an icon font and type the code in for a specific icon and in the CSS use pseudo elements to match ...
2
votes
0answers
197 views

Warnings in nav-menu when visiting query pages

Using query-wrangler, similar to drupal's views, I created some query pages. When I visit these pages, in the top-navigation-menu there is this warning: Warning: in_array() expects parameter 2 to be ...
2
votes
0answers
413 views

Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)

I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it. When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
1
vote
0answers
20 views

Get nav_menu items as a tree

Is there any way to grab the nav_menu items as a tree-like structure? By a tree-like structure I mean something that would preserve relationship between child and parent items, like so (this is just ...
1
vote
0answers
9 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
1
vote
0answers
30 views

Appearance Menus Screen - menu item drop down menu not functioning

According to WP, there should be options to remove/edit each menu item on a menu under appearance, but this option isn't showing up for me in Chrome or Firefox. I have administrator control of the ...
1
vote
0answers
92 views

How to open modal window when clicking a WP menu link?

I'm making my first site with WP, I'm a Joomla Developper. I'm using wisten theme, and WP 3.9.2 I want to create a link in my the navigation that opens a modal window (not a new page) on click. ...
1
vote
0answers
271 views

Use custom walker to add taxonomy terms to main nav menu

I created a Custom Post Type: Product and a Taxonomy assigned to it: Products So under that Taxonomy I can add different types of products (terms if i'm not mistaken). When adding new products I get ...
1
vote
0answers
40 views

Insert menus in the database

I want to create a large menu structure, and the admin pages time out, so I cannot insert them via the admin screens. How can I insert the menu entries directly in the database? Thank you
1
vote
0answers
27 views

Weird behaviour on Edit Menus screen

I am running WP 3.9.1. Fresh install. ACF and Gravity Forms are the only two plugins running. Perhaps someone had this issue before... On the edit menu screen I have a tab called "View All" where I ...
1
vote
0answers
36 views

Unlimited WordPress Menu

I am limited to like 80 menus. My menu consists of 1000 menus. How can I increase the limitation of Appearance > Menu I tried modifying the php.ini (using reseller account) and increase the max_var, ...
1
vote
0answers
36 views

using OOP approach to create plugin but stuck at making hyperlinks to work

I am new to wordpress development so please be patient if my question sounds simple or ridiculous, since I have been doing object oriented programming in PHP so i wanted to use the OOP approach in ...
1
vote
0answers
24 views

Get top items number from wordpress menu

I've made a menu in Wordpress backend with 3 levels depth. (4 main tabs with 2 sub level items) I would like to know how I can get the number of tabs created automaticly and add this number to a ...
1
vote
0answers
27 views

How to make theme elements customizable in wordpress?

In Wordpress there's a menu option called 'Appeareances'. I want to add (e.g.) a submenu 'header' there and then be able to customize the header from within wordpress (administration page). From what ...
1
vote
0answers
147 views

How to show dynamic side bar on menu item

I want to show dynamic sidebar content on menu item (within <li></li> tag) but unfortunately sidebar content show top of <nav></nav> tag, i mean top of the menu and where i ...
1
vote
0answers
93 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
1
vote
0answers
152 views

Split into two seperate unordered lists with custom walker

So I am trying to create a mega-menu using a custom walker through Wordpress. So far I have this for the walker: class oe_walker extends Walker_Nav_Menu { /** * Specify the item type to ...
1
vote
0answers
25 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
964 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
131 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
270 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
186 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
95 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
500 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
102 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
211 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
46 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
79 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
86 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
124 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
103 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
62 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
411 views

wp_nav_menu custom walker - child items

I have written a custom walker to integrate a jquery dropdown nav script into my wp template. I need to add .dropdown-link to each of my parent menu items and .dropdown-wrapper to the unordered list ...
1
vote
0answers
330 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
361 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
421 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
79 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
9 views

Main menu not changing to responsive menu on time in wordpress twenty fourteen

Main menu not changing to responsive menu and menu items create a double menu from 936 screen size to 782 ... id like the menu to become fully responsive on time Can anyone help on this issue? ...
0
votes
0answers
9 views

Custom Menu's - Disable Link checkbox

I've been trying to write a plugin that adds a checkbox (below the "Open in New Window/Tab" checkbox) to the Custom Menu pages/links. I've been able to add the Checkbox and change the ...
0
votes
0answers
20 views

My “edit page” link in admin bar has dissapeared

Since i did some customisation in custom permissions per custom post type the "edit news" / "view news" button that is displayed in the admin bar if you visit the news detail page has dissapeared. My ...
0
votes
0answers
16 views

Backend - Categories and Menus conflicts

I'm having a big problem with my WP instance which is frustrating. Every time I add a new Category ( a simple default category with no custom posts or taxonomies ) it adds, as expected, that new ...
0
votes
0answers
12 views

Default category options in menu editor

When I go to Appearance > Menus to edit my main menu, the Pages selector is open by default: My menu is mainly built around categories, so I would like the Categories selector to open by default, ...
0
votes
0answers
24 views

Page content loading issue using Walker_Nav_Menu

At each page refresh, the page loads in steps, first the header with main menu and then after 1 second, the page loads the rest of content. I use the following code to display the a mega menu on my ...
0
votes
0answers
11 views

Display custom nav menu input only for parent-items

I'm trying to add a custom nav menu input only for the category menu items which are also parent-items. I'm using a custom walker in which I use the following code to show the input only for ...
0
votes
0answers
14 views

Any reason why widgets/menus get emptied when I updated custom theme code?

Deployed my site over git last nite, and client came back saying some menus in the the footer widgets had disappeared. I looked in the admin, and the widgets were still available but all the items ...
0
votes
0answers
18 views

How do I add relative to home menu item?

I want to create custom menu items that link to urls such as: http://localhost/dev/trunk/this-custom-url-here in my localhost dev link http://example.com/this-custom-url-here when online If I add ...
0
votes
0answers
11 views

how to display wordpress navbar with top menu outside wordpress system

i want to display my wordpress top navbar outside of wordpress system in one of my php site, so that whenever i change the wordpress navbar the changes will reflect on my php site. How to do that? I ...
0
votes
0answers
5 views

WordPress menu link redirecting

I have a WordPress menu item that I want to link to http://forum.secdefus.com. I have set the menu up as such. Mousing over the link on the site displays "forum.secdefus.com" in the bottom left hand ...
0
votes
0answers
10 views

How to create a child menu in a different place

I have a main menu and it has a dropdown submenu. I also have to show the same submenu below main menu along with the dropdown and it will be always there. Please see the picture to get an overview. ...