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)

1
vote
1answer
56 views

Setting a Default 'Theme Location' When Creating a Menu

I'm trying to create a theme which when activated, sets up a primary navigation, adds the homepage to it and then enables it in the correct location. Here's what I've got so far: ...
0
votes
0answers
70 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
2answers
110 views

Menu Disappears on Category Pages

I have a site whose navigation disappears on category pages for posts in the ‘post’ post type, but not for posts in any of my custom post types. The ‘post’ post type and post of the custom post types ...
0
votes
1answer
39 views

How to output the menue structured for tabbed navigation?

I've got a design for my webpage that uses tabbed navigation with two levels. In this example 'TAB2' tab is selected and it's children item are desplayed below of it. ˬ ...
0
votes
1answer
25 views

Replace Menu Item with Logged in username

I have a topnav menu item that current says "My Account", I would like to change it so that it functions as: Welcome [Logged in Username] -> My Account -> Logout
0
votes
1answer
16 views

Custom Menu not functioning properly

I register 2 menus in my functions.php file: register_nav_menus(array( 'main_menu' => 'Main Menu', 'bottom_menu' => 'Bottom Menu' )); I populate a menu in the admin and assign the ...
0
votes
1answer
135 views

chained drop-down menu for custom taxonomy using chained.js — not quite working

So, Im trying to get a chained select to work to select a state then a city with that state. (2 fields). Here is what Ive got: First my function to create the menu using get_categories(). First ...
0
votes
0answers
31 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
421 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
1answer
72 views

Parent Page > Child Page Menu

I am trying to create a collapsible menu using Bootstrap. The problem I am having is getting the correct Wordpress PHP code to call the right pages. Also this menu will be displayed on these child ...
0
votes
0answers
25 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
30 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
3answers
342 views

Using website header, menu and footer on Wordpress blog

I want to use the header, top menu and footer from my website on my Wordpress blog. The website itself is not a Wordpress site but the blog is and resides in a 'blog' folder on my server. So I guess ...
0
votes
0answers
46 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 - ...
1
vote
2answers
360 views

How to remove trailing </li> tags from wp_nav_menu walker

I have used theme twenty thirteen a my base theme and Have tried used code from http://stackoverflow.com/questions/12159486/wordpress-change-header-navigation-list-items-to-div when I try to validate ...
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
1answer
33 views

Breadcrumb how i can display page title with parent > child title with permalink ? any Idea

function the_breadcrumb() { global $post; if (!is_home()) { echo ""; if(is_single()): echo 'Main'; else: echo "Home"; endif; echo " / "; if ( ...
0
votes
1answer
82 views

How do I show a different secondary navigation menu for each section of my website?

My site is organised into three sections, like this: Reiki Basics (page ID 499) – page 1.1 – page 1.2 – page 1.3 Practice & Study (page ID 501) – page 2.1 – etc Courses (page ID 471) – ...
0
votes
0answers
33 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
1answer
17 views

Add more levels to menu

I have a menu with more than three levels. The issue is that the menu just shows until level 2, the next child levels don't show. I am using Maya template and WordPress 3.5.2 What i have to do and ...
-1
votes
1answer
111 views

sidebar hierarchical menu category & custom post type

I'm working on a site with courses. I've created a custom post type "Course" and need to create a sidebar menu with the list of courses under the active category and then with anchor links to the ...
0
votes
1answer
68 views

How to include the parent page link in this wp_nav_menu walker

I've got a site with a sidebar of 'sub-navigation' I also need to have those links 'parent page' in the navigation also. So, for example I've got Parent child 1 child 2 child 3 but the php only ...
0
votes
1answer
31 views

How to conditionally add a wp_filter

I have a WP filter I created that I only want to run on certain menu items. I am attempting to use - function add_nav_class($output) { $output= preg_replace('/<a/', '<a class="lsbb"', ...
0
votes
1answer
88 views

How to add nav menu items to a specific position within a menu

I'm adding login/logout links to a nav menu using the following code: function rp_add_login_logout_links( $items, $args ) { $link = wp_loginout( get_permalink( get_option( ...
0
votes
0answers
18 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
1answer
67 views

Where these arguments are defined?

I want to make 2-line navi, and found this code. add_filter('walker_nav_menu_start_el', 'description_in_nav_el', 10, 4); function description_in_nav_el($item_output, $item, $depth, $args) { ...
0
votes
0answers
43 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
2answers
170 views

How do I programatically insert a new menu item?

I'm developing a plugin and I want to insert menu items programmatically. When my theme creates a menu, it uses this call: wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => ...
1
vote
1answer
93 views

Different menu navigation per category

Hello all you helpful people :) I am using a self modified version of the 2012 theme and I would like to be able to display a different main navigation menu based on the category I am viewing. ...
0
votes
0answers
95 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
3answers
1k views

current-menu-item class for custom post type parent

Im having a problem with my menu and custom post type. I have a custom post type of "services". I have created new page for it called Services. On that page Im displaying a list of all the post from ...
0
votes
1answer
179 views

Show only second level menu items? [duplicate]

Something like this. I would like to get only the second level menu items, not their parent items. Home Sub Menu Item 1 Sub Menu Item 2 About Sub Menu Item 3 Sub Menu Item 4 For example, from ...
0
votes
3answers
1k views

How to add a data attribute to a WordPress menu item

I'm Twitter Bootstrap and need to add data-toggle="modal" attribute to the a tag of menu link. Upon searching most all results reference doing a walking for Twitter Bootstrap dropdown menus however ...
0
votes
2answers
62 views

Change appearance based on category but post is in two main categories

I want to change header and menu based on what category a post is listed in. I could duplicate the post and assigned each of the two categories separately but this sounds messy and bleh. The post/s ...
0
votes
1answer
20 views

Opening Menu link in another tab

I am adding a link to my Menu: Everything is working correctly except I would like the link to open in another tab and can't figure out how to. How would I do this?
0
votes
1answer
37 views

How to use page metadata while using wp_list_pages()?

I'm creating my pages links in wordpress, using wp_list_pages(). each link contains an <i> tag which displays retina icons. I want to set a different class for each link in order to display a ...
0
votes
1answer
110 views

wp_nav_menu changed to wp_page_menu

I've styled my navigation menu with the classes of wp_nav_menu .menu_item , .sub_menu etc.When i added a new page suddenly the whole menu was ruined the classes where changed to .page_item, .children ...
0
votes
0answers
35 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 ...
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 ...
0
votes
1answer
24 views

Add item ONLY to the primairy navigation

this code add the proper "home" to navigation... what i try to get is add home to ANLY the primairy navigation, how do i target the "main" only function new_nav_menu_items($items) { $lang = ...
2
votes
1answer
588 views

Show top-level parent with submenu menu walker

I've used the menu walker below to display dynamic submenus with great effect in the past. It displays 2nd- or lower-level menu items IF the current page is a parent, sibling, or descendant of the ...
0
votes
0answers
49 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
1answer
544 views

wp_nav_menu in 3.7 add name class nav navbar-nav

i work with bootstrap3 and wordpress 3.6 but upgrade to 3.7 function wp_nav_menu not work correctly. i use 3.6 <nav class="navbar navbar-inverse"> <?php wp_nav_menu( array( ...
2
votes
2answers
199 views

How to create different navigation for registered users in WooThemes Canvas?

I'm building a website with wordpress and the Canvas Theme (from WooThemes). I'm using the Top navigation for displaying items when a user is logged in. When the user is not logged in, you can see ...
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
2answers
64 views

Create subpages in default Wordpress menu

I've got this code below working to create a default menu. I was wondering how I would create sub-items/subpages... // Check if the menu exists $menu_exists = wp_get_nav_menu_object('Main Menu'); ...
0
votes
0answers
40 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
1answer
204 views

Overriding wp_nav_menu default arguments

I'm trying to override WordPress' default arguments for the wp_nav_menu function, while still allowing programmers the ability to pass their own arguments. The wp_nav_menu_args filter seems like the ...
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.
6
votes
1answer
115 views

Check if add_menu_page exists or not

I'm working on a plugin that I have to release in parts. The problem is, if there is a menu in the page then add the new plugin to the 2nd or next submenu else add a new menu and then add the plugin ...