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
163 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
157 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
293 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
13 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
10 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
18 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
22 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
44 views

Hardcoding links to wp_nav_menu

I am currently trying to add a some links to the end of my wp_nav_menu but am having a hard time with the callback function that creates the list of languages I want to insert. The first function is ...
1
vote
0answers
460 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
78 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
100 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
89 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
66 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
291 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
117 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
41 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
61 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
75 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
106 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
85 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
143 views

how to hide sub menu in members page from visitor and not login user

I just learned how to create menu in buddypress members page. I have created a sub menu in member's page along with activity, profile, message, etc. How can i hide this menu from users and visitors ...
1
vote
0answers
60 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
129 views

Custom Post Type Nav to Subpage

I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar. I'm just curious if there's a simple way to move this out of ...
1
vote
0answers
321 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
285 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
318 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
374 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
70 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

Adding new menu items with wp_nav_menu_items

I am trying to add menu items dynamically using the wp_nav_menu_items filter. What I am doing is working fine on two of my menus but I cannot make it work for the third. Code to register the menus: ...
0
votes
0answers
8 views

Unclickable parent page makes subpage not showing vertical menu wordpress

I've created one menu and wants it to be shown as both horisontal and vertical. There is a parent page I don't want to clickable, only show the subpages. That is fixed by removing the url in link to ...
0
votes
0answers
25 views

Open first link in subnavigation when clicking top navigation

For example: I got a menu item called Food which has 2 subnavigation items, pizza and pasta. I want it to be, that if you click on food, that it automatically links to pizza (the first subnavigation ...
0
votes
0answers
9 views

Override edit_custom_walker.php to conditionally show input depending on menu position

I've created custom inputs for WordPress nav-menus admin page. I've used a similar technique as is shown in this answer - by duplicating edit_custom_walker.php and adding my own fields. My custom ...
0
votes
0answers
23 views

What's the policy for building a theme that doesn't support widgets/menus?

I'm developing a minimalistic theme, and my plan is not to include menus or widgets in it. The Theme Review page on wordpress.org states: Whether implementing required, recommended, or optional ...
0
votes
0answers
15 views

Get Next/Previous (Sibling) Top Level Parent Page Id - Wordpress

Question: Is there any possibility to get next/previous page id in wp_nav_menu in wordpress. Example: I have navigation menu like this Menu_Item_1 (ID = 5) >SubMenu_Item_1-1 ...
0
votes
0answers
18 views

wp_nav_menu() reutrns HTTPS?

We have SSL for our domain. But there's only one page want to use SSL to appear on (https://mydomain.com/secure-page/). All others should be regular http:// pages. So we've set siturl and homeurl both ...
0
votes
0answers
24 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
0answers
11 views

Site Live Database Operations issues

I have a working site on a staging server. The live site is working perfectly, but none of the database operations is working. It doesn't even fire the select query. I have pages in wp_posts tabel ...
0
votes
0answers
27 views

Breadcrumbs using the Menu Structure.

I know there are several questions regarding how to use the menu hierarchy for breadcrumbs and I followed the instructions doing the following... I added this code to my theme's functions file: /** ...
0
votes
0answers
24 views

Conditional output for start_lvl based on title

I want to add a custom class to the UL tag on start_lvl if the user writes "full" on the title area of the menu. Something like this: public function start_lvl( &$output, $depth = 0, $args = ...
0
votes
0answers
10 views

Extra Editing Box in WP Dashboard

So I am trying to add an extra box in the WP post dashboard. In this box I will add a piece of HTML code. This code created the box in the WordPress area: $woo_metaboxes[] = array ( "name" => ...
0
votes
0answers
17 views

Menu of pages with an image

I'm getting really desperate and I need your help, I really tried and research and I couldn't find anything yet. I'm new at wordpress.. and I have this question, I hope you can help me... I want to ...
0
votes
0answers
53 views

Plugin action hook fires when it should not (unrelated admin screen)

I maintain a plugin which generates a PDF of a page or post when an icon or link is clicked. PDFs may be cached, and as such, when a page or post is edited, we refresh the cache by regenerating the ...
0
votes
0answers
160 views

Adding menu items dynamically using wp_nav_menu_objects

On my primary navigation, I want each top level page to have a list of the subpages. So I created code that dynamically adds menu items to the primary navigation. This works only on the first level of ...
0
votes
0answers
20 views

diginews theme, add image under navigation bar

I'm trying to add an image to the header under the navigation bar. I added the following line before at the bottom. <img src="public_html/wp-content/uploads/2014/03/books300x200.jpg" height="80" ...
0
votes
0answers
17 views

How can I filter into the Wordpress back-end menu builder?

I would like to who the categories of custom post types in the wordpress back-end drag-and-drop menu builder. Is there a filter that I could use to add extra bits of markup there? My idea is to add ...
0
votes
0answers
21 views

Menu swapper, WPML issue

Let me start with explaining the current situation. I have a WordPress multi website there is a main website which has links to 4 sub sites. This was mainly done because the sub sites have different ...
0
votes
0answers
47 views

Is a true MiniSite possible with WordPress?

I am creating a website that needs to have separate custom “portals” or “Sections” depending on which market you are in. Example situation: user lands on the home page. User looks at the top-level ...
0
votes
0answers
34 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 ...
0
votes
0answers
43 views

how to override menu widget?

I would like to customize the menu widget in sense to add some classes which would make it responsive. How do I override the default widget for menus? I use a custom template which supports bootstrap ...