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
50 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
0answers
47 views

add_filter 'single_template' and use of wp_nav_menu in template

I'm using add_filter('single_template',...) to call a unique template file under a certain condition. The problem we're running into is that no matter what I do I can't use wp_nav_menu() ...
0
votes
0answers
128 views

How do i keep my current page menu highlighted on pagination?

I have a navigation menu in a page that highlights the current menu you’re on based on the URL by adding a class. My problem is that my page is paginated, so sometimes the user will end up at: ...
0
votes
0answers
67 views

Submenu is missing when custom taxonomy page

I have problem that my sub-menu is missing when I use (tried built in categories also) custom categories as menu items. Basically what I want: Menu item (wordpress page) -submenu item what is ...
0
votes
0answers
85 views

Extending Walker class for Bootstrap 2.3.2

I would like to extend the walker class so that I can show a menu in this format: <div class="accordion" id="accordion2"> <div class="accordion-group"> <div ...
0
votes
1answer
406 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
2answers
119 views

Set menu item class into body

I set css class for menu items. I want to get css class of current menu item and set it to body tag. What should i do ?
0
votes
0answers
24 views

How to create a menu super voice in WP?

I am pretty new in WP (I came from Joomla) and I am finding some difficulties to do the following operation in WP Main Menu. If you go on this site you can easy understand what I need: ...
0
votes
2answers
141 views

How to use wp_nav_menu with hashtag links?

I am developing a custom theme and the navigation part uses hashtags (yes, all content is on one page). So when i use wp_nav_menu( array( 'theme_location' etc the menu items links to the pages. Can ...
0
votes
1answer
183 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
124 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
0answers
12 views

Limit the amount of menus someone can make

Working on a site of mine I was wondering if it would be possible to set/limit the amount of menus someone can make to '1' (and thereby disabling the current menu location features)? I've been ...
0
votes
0answers
33 views

WP E-Commerce - Navigation 'current item'

I'm using WP E-Commerce on a Wordpress site, which creates a 'Store' page and a 'Checkout' page. I'm also using wp_nav_menu() to create a menu. The problem is, when I'm viewing an individual ...
0
votes
0answers
24 views

Highlite current menu page problem

Hello I have a problem with the wordpress menu I have the main menu parent item has the same link width first page in submenu Parent --- Haloterapie: www.site.com/halorepaie Submenu --- Actiunea ...
0
votes
0answers
35 views

Add static value between second & third menu value

How can I add a static value between second and third menu value? For example, like this: Menu value 1, Menu value 2, STATIC VALUE HERE, Menu value 3, Menu value 4 I know about the Walker_Nav_Menu ...
0
votes
1answer
158 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
0answers
67 views

How to link to page AND anchor with Menus and/or wp_nav_menu()

Basically I am trying to create a menu that can link to a page and an anchor on that page in one go. I currently have a menu using wp_nav_menu() but I can't see any argument that could directly modify ...
0
votes
1answer
42 views

Home Custom Menu Link not Working

I'm trying to have the menu link per default when using my custom menus, and in my functions.php document I have this: function home_page_menu_args( $args ) { $args['show_home'] = true; ...
0
votes
0answers
22 views

Add wordpress menus to magento website

How to add wordrpess menus to magento website? I have installed Magento WordPress Integration, author jamesckemp. By using this plugin, i did magento menus to display it in wordpress website. Please ...
0
votes
1answer
49 views

how to change/remove/hide menu under installed plugins

Recently I install one plugin. After installing the "bookingwizz" plugin, the menu added in menu. Under bookingwizz I now have some submenu as well. Now I don't need all those menu items, but want to ...
0
votes
0answers
37 views

Return only posts in a primary menu within loop in the order in which they appear in the menu post__in

I'm working on a single scroll site. I want to include ONLY pages which appear in the primary menu of the site. If a page is not in the primary menu, it should NOT be included in the loop. I also ...
0
votes
0answers
23 views

Plugins for putting Custom Post Types into the Menu

I have been building a website that has numerous custom post types, and I have found one called WordPress Post Type Archive Links. This would allow me to add a link to the an archive of registered ...
0
votes
2answers
456 views

Display posts from Custom Post Type in category page on front-end

I created my Custom Post Type (bizdirectory), created a new post (Test Business) and created a new category (Business Directory). But if I add the Business Directory category (slug = business) to my ...
0
votes
0answers
18 views

Inserting another menu from inside an existing menu

I ran into the dreaded php input limit but for some reason my host doesn't respect the php.ini or other settings. My only alternative is adding another custom menu from within a menu. Don't ask why ...
0
votes
0answers
148 views

Custom taxonomy categories menu with link to subcategory

I'm currently developing a theme for a client that need a "catalog" in a page, I made that catalog with a custom taxonomy and some AJAX, until that everything is fine but the products of that catalog ...
0
votes
0answers
60 views

automatically add new post type to its menu list

In case of menus that contain items other than pages, such as custom post types, posts, posts of a certain category, etc. How can I make wordpress to automatically (programatically) add a new item to ...
0
votes
0answers
31 views

Change archive link to single post

i do menu with this code but links redirect me too archive.php <ul id="nav"> <?php $all_posts = get_posts(array( 'posts_per_page' => -1 // to show all posts )); // ...
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
68 views

Category archive in menu

I am looking for a solution to show the archives for a specific category in my main menu. The first level menu entry would show the label of the category, say "News Digest", without linking to ...
0
votes
0answers
13 views

How to add postcounts behind every category wich are added in the standard wordpress menu?

How to add postcounts behind every category which are added in the standard wordpress menu? Like this: Apples (3) Strawberries (7) Do i need to add some code in functions.php to achieve this? ...
0
votes
2answers
168 views

wp_nav_menu does not take arguments?

I am sorry for this nooby question, but I just don't get it : I was working with the function reference for wp_nav_menu and this is my line of code: <?php wp_nav_menu( array('theme_location' ...
0
votes
0answers
23 views

Strict Standards: Declaration of … should be compatible with [duplicate]

I try this answer, and i changed the function start_el(&$output, $item, $depth = 0, $args = array() ) { but it did not work. The problem is, I have this theme, link here. and I'm getting this ...
0
votes
1answer
109 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
2answers
193 views

how to add Custom menu item like User name in Header Menu only

I am new to Wordpress I am setting up wordpress Site which has 3 Menus Top menu Header Menu Footer Menu My issue is I need to add the User name to My Top menu Only when User is Logged in But ...
0
votes
0answers
36 views

Creating a custom menu with icon fonts

I want to create a custom menu with icon font markup. So I may need to have my list item have e.g. this: <i class="gen-enclosed foundicon-left-arrow"></i> contained inside anchor - or ...
0
votes
0answers
78 views

Customizing template menu output to fit zurb foundation markup

I want to have custom main menu markup in my Wordpress template. I want it to fit Zurb Foundation markup - to be specific - for submenus. I've figured out how to customize class & id if list ...
0
votes
1answer
21 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
0answers
213 views

Remove <ul> from wp_nav_menu() wordpress

I am using the theme Twenty Thirteen and am using wp_nav_menu() to display menu items. I need to remove the container <div> and <ul> from wp_nav_menu(). I tried this: wp_nav_menu( array( ...
0
votes
0answers
37 views

Wordpress wp_nav_menu custom walker

I am trying to create a custom walker for wp_nav_menu output that looks like below <nav role="navigation"> <ul> <li><a href="#about-us">About Us</a> <ul ...
0
votes
0answers
73 views

No Current Class showing in Menu for Custom Post Types

I have Created Custom Post Types "NightLife" "Event" "DLStore" I have added them to Secondary Nav Menu. They show up but when i select the page it does not show any active/current class unlike other ...
0
votes
1answer
107 views

Update body class based on menu

I'm trying to add a class to the body tag based on whether current menu items either have children, or are children. The custom menu was added via wp_nav_menu. I have hooked into ...
0
votes
1answer
61 views

Remove submenu item from list

I have the following script within my functions.php file to avoid certain users from modifying things they shouldn't and would like to remove one more item, the Appearances > Themes submenu. function ...
0
votes
0answers
46 views

How to get the count for each taxonomy term

I know it is $term[0]->count; However, my terms are placed in the custom menu plugin. My terms are currently structured as Parent Child Parent Child How do I append the term count of each ...
0
votes
0answers
135 views

wp_get_nav_menu_items() returns an empty array under tags archive

I have three nav menus and for some reason under tags archive wp_get_nav_menu_items('MenuName') returns an empty array. Frontpage, posts, pages are OK, but when you go into tags archive, no items ...
0
votes
0answers
186 views

Vertical dropdown menus

I am working on converting an HTML/CSS template to a WP theme on my local machine. I am unable to add vertical drop down sub-menus to the main menu in the theme. The HTML for the menu is: <div ...
0
votes
0answers
39 views

How to add a menu to wp admin area?

I'm looking for a way to add a menu to wordpress admin area,so admin can publish and edit posts on a specific category through this menu(just like POSTS menu we already have inside wp admin). This ...
0
votes
0answers
34 views

Add HTML to a specific navigation menu

add_filter('wp_nav_menu_items', 'add_line', 10, 2); function add_line($items, $args) { if ($args->theme_location == 'primary') { // my code here } return $items; } Instead of the above, ...
0
votes
0answers
321 views

wp_nav_menu : Adding a filter to add class to a, anchor element

I want to add a custom class to the <a class="custom"> element that is outputted from wp_nav_menu(). Is it possible to do this? The reason if you're curious: I don't want to use li.menu-item a ...
0
votes
0answers
356 views

Use Wordpress Menu as Isotope filter

I am using an Isotope for my Gallery,I want to use a custom menu so I can easily exclude and include categories if I want.. so far I am using a code to retrieve all the categories. $terms = ...
0
votes
0answers
42 views

WordPress Menu Targeting

Okay so I'm building out a plugin that generates a list from the $menu and possibly $submenu. I want to loop through that array and generate that list by the menu_slug, but I cannot seem to figure out ...