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

Why is wordpress forcing https link generation?

I just moved a local site on my staging area, and I noticed that wp_nav_menu now automatically generates https links. Why? How can I disable it? Thank you
0
votes
0answers
15 views

html <nav id wordpress menu

I am trying to convert this html menu to a nav in wordpress <nav id="nav-main"> <ul> <li><a href="#">Home</a></li> ...
0
votes
0answers
24 views

how to add custom plugin menu link in toolbar

function ledger_manager_link($wp_admin_bar) { $args = array( 'id' => 'ledger_manager_link', 'title' => 'Ledger Manager', 'href' => plugins_url('ledger_credits.php'), 'meta' ...
0
votes
0answers
141 views

WordPress Custom Links and category is not working

I am new to wordpress and using wordpress(4.1.1) and theme "Hueman". I wanted to add custom Link and Categogy Link in Menu Structure, but i can't able to do that. When click ...
0
votes
0answers
27 views

Why is WordPress stripping anchor links from mneu item URLs?

I have a taxonomy page that lists all the sub-categories. I want to link directly to the sub-category position of that page from the main navigation menu. I set up a menu with the main category ...
0
votes
0answers
62 views

Top level ancestor ID of current page in navigation menu

I want to get the ID of the top level ancestor in the navigation menu. So I want to do a function that retrieves id of "TLA" from this list: Menu - Submenu TLA <- Need its id - Submenu 1 - - ...
0
votes
1answer
6 views

Importable Menus? Along with Pages (a site layout template)

Simply stated: How do you pre-create menus which can be imported by a user who does not want to spend a day recreating the wheel? Most themes have preferred layouts, which can have a tedious page ...
0
votes
1answer
67 views

WP Super Large Menu Problem

Hey Folks! I am looking for the best WP practises to handle mega large menu. My navigation menu has about 400 links, so if I create just a single menu, then it looks so ugly... I could divide it into ...
0
votes
1answer
105 views

Menu on responsive twentytwelve theme not working, strange url error

i use twenty twelve custom theme (palumariosrl.it) but i have a problem. If i try to use on responsive mode the menu not function (can i see only hover menu page and if i click on menu buttom i have a ...
0
votes
0answers
56 views

Get menu item data from menu item ID

I want to filter the_title when I output a custom menu (of internal pages) using wp_nav_menu(). My pages have a custom field called 'short_title', and I want to use these values in my rendered menus ...
0
votes
0answers
30 views

Admin Custom Menu Editor Disappeared

The custom menu editor on my site has disappeared. It used to be under the Appearance menu. Any idea where to find it, or how to fix this problem?I have registered and init the menu properly in theme ...
0
votes
2answers
57 views

Get menu items problem

I'm trying to get a menu items created from wordpress admin panel. To do this I followed the instructions codex: http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items // Get the nav ...
0
votes
0answers
55 views

Add login and register controls at the header top right corner

I want to add login and register at the top right corner in the main menu of wordpress site. So is there a plugin out there which can do this and login and password textboxes should show horizontally ...
0
votes
2answers
88 views

Admin: Navigation Menus do not show empty categories/taxonomies in the list's search tab

This is referring to the Admin area of Navigation menus It seems the normal behavior for building out Navigation Menus (Appearance>menus) is that when you expose categories or custom taxonomies, that ...
0
votes
1answer
27 views

Hide menu theme location for certain capabilities?

I have 6 menu theme locations setup with "register_nav_menus" I would like editors to be able assign custom menus to 3 of those locations and keep the other 3 only available to administrators. How ...
0
votes
0answers
53 views

Theme for a specific subcategory inside multiple categories

In relation with this topic in which I wanted a different theme for categories than for subcategories, now one step further, I want a specific theme for a specific subcategory used in multiple ...
0
votes
1answer
36 views

Can't add any menu items anymore, server related

Unsure if this fits here, but hopefully it does. So I'm having an issue that I can't add any menu items to a custom menu anymore. At this very point I can verify that it's server related, since this ...
0
votes
0answers
38 views

Adding items in a menu not working in multisite

I have a custom code that it will automatically add the category to the menu in multisite. Lets say I have a category name "Cat1" then once I run my code this will automatically added to the menu. ...
0
votes
0answers
56 views

Sidebar menu, different parent and child pages

I wish to organize a hierarchy of pages into a navigation menu in a manner similar to the following: Cats Short-haired Long-haired Purebred About Animals Dogs Toy Dogs Hounds Terriers About ...
0
votes
2answers
148 views

Add static item to wp_nav_menu

I am trying to add static menu item to Wordpress Menu.I am using filter 'wp_nav_menu_items' for this in functions.php. It works but it doesn't put it under menu container tag. function ...
0
votes
0answers
23 views

Sub menu that links to posts grouped by year

Is it possible to create a custom menu that links to all posts grouped by Year (See screen shot) and is automatically populated as new posts are created? I have found a few posts asking for a way to ...
0
votes
1answer
31 views

Modify sub_menu function to show pages below a specifically set page

I've got a function that ties in to wp_nav_menu that shows sibling pages for the currently viewed page, as well as any children pages. I need this modified to only show the children pages of a ...
0
votes
0answers
22 views

error on adding menu walker

I am trying to add a menu walker. I have added the following code in a plugin: class description_walker extends Walker_Nav_Menu { function description_walker() { } function ...
0
votes
1answer
33 views

add_action does not call the function

I want to add a custom field in the menu, therefore I am trying to use wp_nav_menu_item_custom_fields. I am using following code but it does not even call the function. I am adding it in a plugin, why ...
0
votes
1answer
29 views

Update nav menu not selecting parent

I am building a nav menu programmatically like so: $menu_exists = wp_get_nav_menu_object( 'test_menu' ); if( !$menu_exists){ $menu_id = wp_create_nav_menu('test_menu'); ...
0
votes
0answers
78 views

Use secondary menu of parent theme in child theme

I cannot solve this problem and this case doesn't work for me either. All cases that I found on the internet deal with the new secondary menu that should be registered and used in a child theme. In ...
0
votes
1answer
95 views

wp_nav_walker that interacts with widgets to setup mega menu

I'm a newbie WordPress developer working on a WordPress theme project that demands mega menus as part of the main navigation. I'm done with the front-end stuff, and now I'm trying to explore the ...
0
votes
2answers
98 views

Current User In Custom Menu Item URL [closed]

I'm using S2Member + Buddypress on a compatible template. I have 8 menu items and am using the "Menu Items Visibility Control" to limit the 7th for view only to current_user_is(s2member_level1) | ...
0
votes
0answers
70 views

How to use a start_el variable in start_lvl

On top of the sub-menu list items i would like to insert a <h2>parent-description</h2> line which i expect to show the description (or the title if wanted) of the parent item. Such as; ...
0
votes
0answers
54 views

Multiple sub-navigation menus in page

I am developing a WP theme. I need to have a main menu in 'pages' (already done) and have some sort of sub menu made of tabs in the 'page'. I thought about having multiple tab navigation menus and ...
0
votes
1answer
95 views

Modifying the walker to insert parent's description above sub menus

I would like to show the title or the description of the parent item on top of the the sub-menu list items. I have basic knowledge on how to modify the walker by calling start_lvl function to insert ...
0
votes
0answers
128 views

SQL query to get all nav menu items and their titles/label

I want to get a list of all nav menu items displayed in a menu having id "19" in my search page to match against the search string. I would like to get names of menu items as displayed on frontend. I ...
0
votes
1answer
42 views

Show Child of Parent Page including all other parents

I'm trying to show on the menus as assigned in WP Menu backend however how is possible to load child of parent page without hiding the rest. Example Main-1 Main-2 Main-3 When Clicking on Main-1 ...
0
votes
0answers
43 views

Pagination breaks custom sub menu

I've got the following class which allows me to make a specific sub menu. class Custom_Walker_Nav_Sub_Menu extends Walker_Nav_Menu { var $found_parents = array(); function start_el(&$output, ...
0
votes
1answer
189 views

Highlight specific menu item when custom post is page

I know that this question was asked many times, but I did not find a really good solution for my problem: I have a custom post type "event" with some categories like "lecture". For each category, I ...
0
votes
0answers
77 views

Wordpress mega menu walker

I need make a mega menu walker with these structure: <li><a href="#" title="" class="active">Sākums</a></li> <li class="dropdown"> <a href="#" title="" ...
0
votes
0answers
67 views

How do you add content to a WordPress sub-menu dependant in its parent?

What I'm wanting to achieve is this: A submenu with content showcasing 1 product from each category after the links In the submenu. I am trying to use the WordPress nav walker to add the content ...
0
votes
0answers
14 views

How do can I pass data retrieved from a filter to template files?

I wrote this class to display only the current top level menu item's children: class deseng_navSplit { var $sorted_menu_items; var $args; function __construct($x, $y) { ...
0
votes
0answers
44 views

How can I automatically add a taxonomy to my navigation?

So I have a navigation of custom taxonomies that I have added through Appearance > Menus Navigation: HOME | NISSAN | HONDA | TOYOTA | MORE Now all of those are custom taxonomies of "Types" that ...
0
votes
0answers
86 views

How to add a custom HTML attribute to a parent element of wp_nav_menu?

I am using wp_nav_menu and I want to add a custom attribute that I need for uikit drop down component (data-uk-dropdown attribute) This is how the HTML should look like: <ul class="uk-navbar-nav ...
0
votes
0answers
51 views

Create a menu with Language link

I created a menu in the appearance area with links to the languages i want, but if i'm in the "About" page and click in some language it goes back to the homepage, is it possible to create a menu and ...
0
votes
0answers
32 views

Item_wrap doesn't work when the menu returns fallback_cb

It seems the item_wrap() function doesn't work when a navigation menu is not created and it returns the fallback_cb (a list of pages). Actually, I just need to add an icon of a searcher to the ...
0
votes
0answers
41 views

Can't add optional class to menu item when using Walker_Nav_Menu

As a wordpress beginner. I'm creating menu also want to customized the <li> tag to be able to assign different class name to control specific behavior through CSS so I use custom walker to get a ...
0
votes
1answer
41 views

How to build a navigation menu for long-form texts like this one

A menu like this one here (on the right–hand side) – http://tenxer.github.io/xcharts/docs/ – makes it much easier to navigate through long-form texts. Do you know of a way of implementing something ...
0
votes
1answer
48 views

Call posts of particular category in a page

As per my requirement I need to call posts in a page for example Iam having a menu item Current Tenders and having a posts category Current Tenders now I need lo display posts related to current ...
0
votes
1answer
69 views

Add custom class to existing menu items from custom meta

I would like to add a custom class to my existing menu items. The problem is, that I would like to do something like this: <li class="<?php echo get_post_meta($post->ID, "_icon", true); ...
0
votes
1answer
62 views

Nav-Menu not showing up

I would love for somebody to please help me because somewhere I am really miss understanding what WordPress is telling me. Alright so within my header.php I have the following code. <div ...
0
votes
1answer
42 views

How to translate menu items?

is there i way for menu to be translated when i choose website language? Can it be done without using a plugin? Does anyone have a solution to do it withot using the plugin? Thanks in advance
0
votes
4answers
567 views

How to add active state to the navigation links?

I am trying to add active states for my custom menu navigation, but so far everything I try is just not working. I have set the navigation menu in a separate file nav.php, then I included the nav.php ...
0
votes
0answers
71 views

Show Sub-Menu when main menu is hovered over

I am trying to make a sub-menu show when the main menu is hovered over. What I did is made both menus show on all pages, then added this CSS: Note: walking-menu is the sub menu, main-nav is the main ...