Tagged Questions

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
2k views

Add an extra field to the navigation menu box?

Goal: I like to use a subtitle in the navigation bar. The most logic location, in my opinion, would be Appearance > Menu and add a field below navigation label called subtitle. So the end user can ...
2
votes
3answers
1k views

Hide and show menu subpages

I am sorry if this is not clear, but I am using translated wordpress so I am translating some names back. I have pages in menu and when I click on some item it goes to that page. But I need f. e. ...
-1
votes
1answer
595 views

Inserting a shortcode into a genesis menu?

I'm trying to insert a shortcode as the last item in a menu but it results in creating the <li> but then throwing the shortcode output elsewhere, outside of the list. It also removes the closing ...
0
votes
1answer
2k views

How to add div to top menu itiem

<div class="menu"> <ul> <li class="page_item page-item-15"><a href="link.html">XXX</a></li> </ul> </div> Where "XXX" I want to put ...
1
vote
1answer
122 views

Make a navigation menu in the same post [duplicate]

Possible Duplicate: Looking for a Table of Contents (TOC) plugin for WordPress I have been trying for some time to do one thing: I need a navigation menu inside a Wordpress post which will ...
0
votes
2answers
234 views

custom menu not found

I am trying to use a menu which I have partially working, I have setup functions.php: if (function_exists('register_nav_menu')) { register_nav_menu('main-menu', 'Main Menu'); } I have configured ...
1
vote
1answer
268 views

get_search_form() doesn't appear to take parameter into account

I am creating a menu manually and trying to include the search form. this is taken from the Wordpress Docs "Building a simple menu list" at ...
1
vote
1answer
4k views

register_nav_menus() won't register menus

Please help with menu registeration: I have followed this guide (http://codex.wordpress.org/Navigation_Menus) step by step. Added the following code to functions.php: function register_my_menus() { ...
0
votes
1answer
310 views

How to create menu spread over four lines including images

I would like to create a dynamic WordPress menu using wp_nav_menu() divided over four lines or rows as the static website. I think I should either force the menu to do this using CSS and width ...
0
votes
3answers
276 views

Adding an additional menu in Wordpress

I am using wp_nav_menu() and I want to add the search box as a part of the menu. I am having trouble figuring it out and was hoping for some assistance: My code: <?php $args = ...
1
vote
2answers
1k views

Separator for custom nav menu

I creating a custom footer navigation in wordpress. I looked all over the wordpress documentation and still haven't found anything. So, what I'm trying to do is add an "|" in the navigation like this: ...
3
votes
2answers
924 views

Custom metabox for menu administration page?

I've been googleing around but failed to find a solution for my need. I'm using wordpress 3.0 and TwentyEleven theme as default pack. In the Dashboard -> appearance->menus that allow user can ...
0
votes
1answer
42 views

Show tarifs page with menu a or b depending on menu of origin

I have a site with three menus, one per main category of the site. I use pages only. Two main categories have one page in common. Category A with menu a Category B - with menu b - with tarifs page ...
0
votes
2answers
172 views

Adding an external link to wordpress menu

I am currently using wordpress menu like this ... $args=array('menu'=>'menu', 'menu_class'=>'', 'before'=>'<span>', 'after'=>'</span>', ...
0
votes
1answer
345 views

Add session or cookie to remember last menu location

I have a site that is pretending to be three sites. This is done by a series of conditional statements and page templates to make it look like the user is on a different site depending on their menu ...
1
vote
2answers
75 views

Did upgrading from 3.3 to 3.3.1 introduce breaking changes in the menu navigation?

I have a WP 3.3.0 site running in production. (version.php says $wp_version = '3.3';) I have a main menu using WP's built-in functionality. I use wp_nav_menu(array( 'container_class' => ...
3
votes
1answer
161 views

How to display wp_nav_menu() conditionally only when not on a 404 page?

I made a custom design for my site. On my header i put my navigation so everytime i call the header the navigation will be called to, so that i would not be calling it all the time. But now i have a ...
0
votes
1answer
523 views

How to make wordpress nav menu use post custom meta data

Using WordPress custom navigation menus automatically gets the menu item label and displays it between the of the menu item, what I need to do is to get a custom field value of the page and displays ...
1
vote
2answers
19k views

WooCommerce dynamic menus

I have a basic WordPress site set up with the Suffusion theme and the WooCommerce plugin. This is working well for the most part, however when I have folks click / hover over the "Shop" menu icon I ...
1
vote
1answer
1k views

Wp_Nav_Menu - Identify the last menu item

I'm have a horizontal top menu with a solid border on the right hand side. <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'nav', 'fallback_cb' ...
1
vote
3answers
171 views

Remove the whole menu in the admin

How can i remove the whole menu in the admin? I have this code: function remove_menu_items() { global $menu; end( $menu ); while ( prev($menu) ) { $value = explode( ' ', $menu[ ...
0
votes
1answer
568 views

wordpress add_submenu_page adds broken link

I install my plugin in several sites and the submenu links generation at backed works fine, but fails in one specific site. I use the follow code to add the submenu items: add_menu_page( 'Plugin ...
1
vote
1answer
103 views

Tidy nav menu classes except for edit-menu-item-classes and active class

I want to tidy the menu class and remove the <li> ID tags, but return the class which is added by CSS Classes (optional) and current class.
0
votes
1answer
1k views

Adding Sub Menu In a theme which Do not have Menu Options

I am a new bee in wordpress but i can code in PHP. I have a free wordpress theme installed on my local host. The theme Do not have an option to add to add menu/sub menu in it. It comes with predefined ...
1
vote
1answer
481 views

next_post_link() on custom menu structure

In a blog, I am using next_post_link() and prev_post_link() extensively on posts. I also have a number of pages that I show in a WP3 menu. They are organized in topics and sub-topics e.g. like so: ...
1
vote
1answer
153 views

menu link to custom post_type?

is there a way to add a custom post_type (directors) link to a menu? I can add the individual director posts but not the link to all of them. I'd like to avoid using custom links as this will be ...
0
votes
1answer
196 views

Is custom menu name and category name linked in wordpress?

I have created a custom menu for each of my categories (to show subcategories of each category on that category page) and that menu will have the exact same name as the category name. The weird ...
1
vote
2answers
716 views

Adding a Nav menu to post admin

i want insert a dropdown menu with list of menus, that i've created in nav-menu.php, to post-admin... For example, when i'm creating a post, i want insert a menu "Paul" in a post (only a post that i ...
0
votes
2answers
668 views

Hard-coding a shortcode as the last menu item in primary navigation?

I have Genesis framework installed with a child theme. My client wants their themes "shopping cart" shortcode to be the last menu item, in their primary nav, no matter how many menu items there is. ...
-1
votes
1answer
493 views

Should I custom code drop down menus or use a wordpress plugin?

EDIT -- Hopefully my question is more clear What is the best practice for wordpress dropdown menus: Custom CSS (editing styles.css) Using a WP Plugin I'm leaning toward coding it myself from ...
2
votes
1answer
68 views

What Defines What Category A Post Picks (if in multiple)

If I have a post in multiple categories, what defines what category shows up in the URL? Assuming I have permalinks setup as /%category%/%postname% is it the ID or the name?
3
votes
4answers
15k views

wordpress nav menu using twitter bootstrap

I'm using twitter bootstrap in my theme. I'm trying to use bootstrap menu in my theme. But it use custom attributes like data-toggle. Here is the full code. <ul class="nav"> ...
1
vote
2answers
101 views

Querying both pages and posts

I am building an "advent calendar" for a client and they are wanting a combination of specific pages and custom posts appearing on the front page, in a specific order. Things that need to be ...
0
votes
1answer
365 views

How do I render a navigation menu like my theme does?

I am using the theme suffusion, and I'm trying to add a custom navigation menu to only one of my pages. I've managed to get it almost working using this in my page template: if(is_page('123') { ...
0
votes
2answers
446 views

Dynamic menu with custom post types

I'd like to create a dynamic menu with a mix of static pages and custom post type archives that applies a class of "current" to the current tab. The example below uses 1) Static page set as Home 2) ...
1
vote
2answers
960 views

Using default WP menu functionality to link to custom post-type listing?

I'm completely starting over with a wordpress project that began a couple of weeks ago, and basically i'm totally discovering wordpress, so please bare with me. I might be completely misunderstanding ...
0
votes
2answers
3k views

How to remove div container in custom menu?

all As per my html theme structure i do not want to add my menu <ul><li> under <div>. I am using <?php wp_nav_menu( array( 'menu_class' => 'tlm', 'theme_location' ...
0
votes
1answer
215 views

Give Children Unique ID's

Is there a way I can give each wordpress children (subcategory UL lists) unique ID's? I'm creating a dropdown list for subcategories and I want to position them but :nth-child isn't supported by ...
1
vote
3answers
2k views

Add “parent” class to parent menu items

Is there a good way to add a class of "parent" to list items that have children using wp_nav_menu? I've found a couple of solutions online but non seem to have the desired effect.
0
votes
1answer
212 views

How can I set the first link in my nav menu to simply be a drop-down to some other pages

I want to have a set of ~3 pages in a subdirectory called "about" example.com/about/history example.com/about/program example.com/about/coaches I don't want any about/index.html page, I just want ...
0
votes
1answer
21 views

Is it possible to make the heading on a page different text to the text of the menu item?

Is it possible to make the heading on a page different text to the text of the menu item? I have a page with a very long title and I'd like to make the clickable menu text shorter. Site is here: ...
1
vote
1answer
5k views

wp_get_nav_menu_items how to exclude sub level menu items?

I have the following function to output a custom menu in select format for a responsive design I'm working on. It's working exactly how I want it to apart from I would need to exclude sub menu items. ...
0
votes
2answers
160 views

Change div background acording to the selected category

I'm coding a graphic menu that consist in five divs with a background each. On mouseover the background changes and the child div disappears. On click, each one works like a link to the correspondent ...
0
votes
2answers
948 views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
1
vote
2answers
2k views

Adding custom text in items titles from wp_nav_menu()

I need to add something after each title of a specific menu called by wp_nav_menu() I tried add_filter('wp_nav_title', 'testing_stuff'); with function testing_stuff() { $item->title = ...
0
votes
3answers
449 views

How to Structure Pages and Subpages

I'm trying to create a church site using WordPress. The following is a small sample of the page structure I'm trying to create: About Staff Statement of Faith Contact Ministries Furnace Prayer ...
0
votes
3answers
262 views

How to list menu-item- ids in order for wp_nav_menu

I have a nav menu call: 'primary', 'container_class' => 'primary-menu' ) ); ?> The output looks something like this: <div class="primary-menu"><ul id="menu-other-links" class="menu"> ...
0
votes
2answers
52 views

Adding new pages to Menu

I am new to Wordpress. I am using the free Theme for my blog. I have added Menu as About Us, Contact Us, Groups etc .. I need to add Static Pages to About Us, Contact Us etc ..!! I dont know to How ...
1
vote
1answer
487 views

add_submenu_page function to show videos table

wondering if its possible to show the attachments admin list for videos by using a custom menu link? Any pointers welcome! D. add_action('admin_menu', 'mt_add_pages'); function mt_add_pages() { ...
1
vote
4answers
2k views

When at / ( or “home”) my menu doesn't get a current-menu-item class

I'm a wordpress noob tweaking a theme, so I'm trying to understand how it works. I've read about 10 related posts in SE but don't get it yet. My problem is as follows: header.php seems to generate ...