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
0answers
226 views

bootstrap nav menu drop down is not working

i'm trying to develop a responsive theme in wordpress with twitter Bootstrap v3.0.2. and in order to integrate bootstrap menu with my theme i use the below code in my function.php class ...
0
votes
0answers
46 views

How to display menu description, but only if there is a sub menu?

Today I've written my own custom menu walker. While I am a bit shocked how difficult this is (also because there seem to be some bugs in Wordpress), I am astonished that I could make everything work. ...
0
votes
0answers
99 views

sub menu in bootstrap is not displaying

this is my custom walker function. class Bootstrap_Walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = array()) { $output .= "\n<ul ...
0
votes
0answers
87 views

Show recent posts thumbnail inside menu

I'm trying to develop a menu bar for a theme that, when the admin adds a category as a child on the menu, it displays the recent posts of that category. Example: I have a menu called "jobs" which has ...
0
votes
0answers
40 views

Show content of subdomain from specific menu-item?

If have a site with menu that has links that looks something like this: domain.com?page=3 domain.com?page=35 domain.com?page=3 I want wordpress to show content of shop.domain.com when user clicks ...
0
votes
0answers
493 views

WP Bootstrap Horizontal Menu for Child Items

I have bootstrap 3 integrated into my custom WP theme. I am using navwalker and WP's built in menu. Everything is working great, but I would like the child items of my parent level to be displayed in ...
0
votes
0answers
31 views

How to remove the suffix from tag title of the current archive

Hi I am new to WordPress. I am developing a website. I am listing the name of all categories as my menu bar. The problem is that when I click on a category from the menu bar, the word 'Archive' is ...
0
votes
0answers
42 views

Main Menu Theme Different Output Print

I am currently developing a wordpress theme that has a tricky main navigation menu. The problem I am stuck with is that I am looking for a special print of the submenu. Here is the html I am trying ...
0
votes
0answers
75 views

The capability edit_theme_options is not giving capabilities to add an item to menu

I want to give a user the capability to add pages to the menu. So I gave him the edit_theme_options capability using the User Role Editor plugin. This gives him the capability to see Appearance - ...
0
votes
0answers
27 views

Display Post by menu order

I want to display posts on my homepage. But I like to manage the posts using Wordpress Menu, so I can easily add, delete, and re-arrange the ordering of posts displayed in the homepage. For Example: ...
0
votes
0answers
43 views

add metabox to specific custom plugin page

Hello I am new to WordPress and I am creating a custom plugin called ZeeFields. Now i wanna add a meta box to my custom plugin page. I tried but still i cant get it to work. btw I can add meta box to ...
0
votes
0answers
19 views

Child navigation within a menu

I've managed to create a dynamic menu. However, I need to place an inner menu within that, like so: List Item List Item List Item List Item List Item List Item List Item And I currently have: ...
0
votes
0answers
58 views

Adding an extra attribute to menu link using wp_nav_menu

I need a little help, I'm basically trying to add a custom data attribute to the a tag in all menu items. So as it stands, I have this: <a href="/">Home</a> <a ...
0
votes
0answers
108 views

Woocommerce + Show a menu with only the active category and sub-category

I have a menu structure that looks like this: Categorie 1 - Sub Category - Sub Category Categorie 2 - Sub Category - Sub Category Categorie 3 But I only want to show the active category with it's ...
0
votes
0answers
38 views

adding pages to the menus in wordpress admin side

Hi i'm new to wordpress and just started to study it. i already got a css and index.php files for studying with practicals. i integrate it to my local wordpress and created files ...
0
votes
0answers
81 views

Link to Author archive from Navigation Menus in dashboard?

I'd like to display a grid of authors on my site showing the name of the author and their avatar. The tricky part is, I'd like to be able to control this from the Menus page in the dashboard so I have ...
0
votes
0answers
44 views

WordPress Boldy theme new created page - Page Not Found

I'm using Boldy Theme and having problems with creating new pages: every page I have published showing "Page Not Found" page in preview. I'm new to WordPress and not 100% whether I'm following the ...
0
votes
0answers
55 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
138 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
73 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
111 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
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
0answers
13 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
34 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
25 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
42 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
0answers
69 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
0answers
33 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
0answers
43 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
24 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
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
166 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
79 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
41 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
0answers
14 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
0answers
40 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
88 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
0answers
229 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
42 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
80 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
0answers
58 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
163 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
192 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
41 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
35 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
419 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
380 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
43 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 ...
0
votes
0answers
139 views

Additional class for.sub-menu UL?

This code returns my WordPress menu: <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'header-menu') ); ?> What's the easiest (non-JS) way of adding additional ...
0
votes
0answers
111 views

load wp_menu dynamically with enquire.js

I'm trying to dynamically load the wp_menu with enquire.js but it just doesn't work. If the screen is < 1080px the wp_menu(mobile) should be loaded, otherwise the wp_menu(desktop). In my ...