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

Site with all content on the front page

I would like to achieve the following: all the content is displayed on 1 page (the front page) the content is organized in sections the content for each section can be edited separately each section ...
0
votes
1answer
422 views

Show menu based on parent & ancestor

Trying to show a wp menu based on parent. Works great on parent / child pages, but on grandchildren pages its failing. How should i restructure the menu selector to include the sub nav menu based on ...
1
vote
1answer
50 views

Find the Children of a Page then Echo it as a Bulleted List of Links (menu)

I am trying to check if a parent Page has children. If it has children I would like to echo the children as a bulleted list with links to each child (basically a menu). Right now I have the following ...
1
vote
2answers
2k views

How do I fix this error: Warning: invalid argument supplied for foreach()?

I recently moved a wordpress install from my local instance to a dev server. For the move, I installed a clean version of wordpress 3.4, moved exact duplicates of the file structre, and used the ...
0
votes
2answers
118 views

How to insert link to the default post archive into a menu

I can add categories, I can even add a custom post type archive, but I can't add the original posts archive. It's not among the page list. I worked around this by creating a page, creating a ...
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 = ...
-3
votes
1answer
127 views

Is it possible to animate the Twenty Eleven menu? [closed]

I have a menu in my Twenty Eleven child theme that has some hierarchical items. Twenty Eleven handles it just fine, of course, but my client likes the fancy-looking menu animation that you can see on ...
0
votes
0answers
19 views

How do I add the menu item description to the menu? [duplicate]

Possible Duplicate: Menu items description? Custom Walker for wp_nav_menu() I know this question has been asked before, but I haven't quite found the answer I'm looking for. This handy ...
1
vote
2answers
456 views

Custom Permalink Plugin and Current Page/Ancestor in Menus

I'm looking for a custom permalink plugin that is able to interact with menu classes. For instance, I have a menu that includes the parent website.com/shop as one of its list items. If a page, say ...
2
votes
1answer
467 views

Custom Nav Walker to show siblings and children of current branch?

I have seen very similar (if not exact) queries to this all over Google, but always seem to find something short of what I need. I am trying to create my full vertical menu using wp_nav_menu in my ...
0
votes
2answers
195 views

How to add a menu that belongs to parent blog to all child-blogs?

I want to add a menu that belongs to parent multisite blog to all child-blogs. I need the menu displayed in all child-blogs, I mean the same menu on all multisites blogs. How I can do that?
3
votes
3answers
2k views

Change the_title() of a page dynamically

I'm developing a plugin that doesn't use a custom post type, but separate database tables. It's a plugin that displays a list of courses with links that lead to the different course detail pages, ...
0
votes
2answers
24 views

Styling Active Links Within Wordpress

I wish to style the active link (ie. when home page is selected that the home page link be a different colour) .current-menu-item a { color: #36c; } My test site is : www.milknhny.co.uk/ShopTest I ...
2
votes
2answers
961 views

Hide main div if wp_nav_menu is empty

I want to hide the div class "navmain2" if the menu is empty. See code below: <!-- Start main navigation --> <div class="navmain2"> <div id="logo"></div> ...
2
votes
2answers
57 views

How to gain access to each menu item in wordpress?

I have some menu items in a menu at location "main-menu". By using wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); , i get all the 13 items in a div. Now i just need to show 10 menu ...
0
votes
2answers
928 views

Menu Arrow for Child Element

I have a menu for a website I am designing and there are parent and child elements...I was wondering if there was someway I could add an arrow to my navigation if the parent has a child element? My ...
0
votes
1answer
890 views

Controlling sub-menu within sub-menu

I have a menu setup at the moment for a site I'm building that I'd like to change a little the way it pops up and doesn't popup :P At the moment, I hover over my main menu items if there are sub ...
3
votes
4answers
14k 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"> ...
4
votes
2answers
191 views

Add Commas Between Menu Items?

I created a menu in wordpress in the Menus section of the backend is there any way to display the menu links with commas so it displays as Link1, Link2, Link3, Link4?
-2
votes
2answers
319 views

Formatting WordPress Menus (without bullets, inline with text)

I'm trying to add a copyright statement and footer menu to the footer area of my Twenty Ten child theme. So far I've created the child theme and added the copyright statement and footer menu to the ...
1
vote
1answer
294 views

Add items to a menu dynamically

I'm doing a site in WP with dynamic and static content. I'd create the menu from the admin panel. I have 5 sections (Home, about, Boats, News(blog), contact). I'd create a custom post type with new ...
2
votes
3answers
2k views

wp_nav_menu always falls back to a menu

hey all, i'm writing an automated function that generates a menu from a function. it calls wp_nav_menu on each item from an array, because i want this to be dynamic. the problem is, no matter how i ...
0
votes
2answers
412 views

Styling an “active” link outside of Wordpress default menu

I want the background-color of the selected box on this page to display gray color once the user lands on the corresponding page. My link is currently setup inside of the page template itself as a ...
0
votes
1answer
32 views

changing host.. data loss

I changed my host from dreamhost to godaddy.. My menubar setup is not showing up.. all of the pages are visible when there is only supposed to be a couple visible .. the site is first in english but ...
0
votes
1answer
31 views

Custom Posttype and menu classes

I'm working on a custom theme for a website, and this website has a custom posttype 'Recipes'. I added custom menu support and made a menu item which points to www.websitename.com/recipes And ...
2
votes
1answer
1k views

Sub-Pages only of menu items in current branch using a custom menu

Although I did a thorough research I could not find a solution. Only solutions coming close. My custom menu ("top") shows this structure (you see a part of it): page 1 subpage 1.1 category A ...
0
votes
1answer
51 views

Custom Links in Walker Class

I am creating a custom walker class. I need to identify the custom links that will be added to the menu from Appearace > Menu > Custom Link so that they will have a different format to the page/post ...
1
vote
1answer
450 views

Recreating the hierarchy of taxonomies for a dropdown form menu?

I have a form that contains a dropdown menu. This form is on a page form.php and is not part of my theme. It exists outside of my site. This dropdown menu contains my list of values for a custom ...
0
votes
4answers
2k views

how to assign an ID to a wordpress menu

The following code does not produce a UL with ID of "nav". It just produces <div class="menu"><ul> This is the code: wp_nav_menu( array( 'theme_location' => 'menu-1', ...
0
votes
1answer
3k views

Adding attributes to <a> link in wp_nav_menu using custom Walker function

I am trying to generate a menu using wp_nav_menu. My expected output is this: <!-- Main Menu --> <div class="navbar navbar-blue navbar-fixed-top" style="margin-top:74px"> ...
-1
votes
1answer
623 views

Open WordPress Page from selected option dropdown

Code/process to get option dropdown menu selection to open page in WordPress with php? Tried all kinds of plug-ins, widgets, but none will make menu that fits requirements of project so far. ...
2
votes
0answers
367 views

Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)

I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it. When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
0
votes
1answer
72 views

WP MU: Using pages from main site in other sites’ menus

Is it possible to use pages created on the main site in other sites’ menus? For example it would be excellent if all pages from the main page not only appear in the Custom menu section of the main ...
1
vote
3answers
759 views

Display three different levels of navigation from wp_nav_menu separately?

I have a three level nav setup using Wordpress menu creator. Structure: A —1 ——Y ——Z —2 —3 B C I wish to display each level of the navigation alone, in different areas of the page. With current ...
0
votes
1answer
117 views

Menu item added with “wp_nav_menu_items” gives “damaged” url

I am adding menu items with the code below, the menu items show up when clicked but they give damaged url's e.g for the top link when clicked ...
0
votes
1answer
107 views

How do i specify a url to which to redirect the user after he logs out from facebook?

I need to specify a url that i will use after the user has logged out from facebook because i need to do some extra-cleaning and he is correctly logged out from our app. For this i need a url that ...
2
votes
1answer
375 views

Make compatible custom menu widget for Twitter Bootstrap

If I configure wp_nav_menu function, I can put the "items_wrap" option to achieve a nice navigation given by Twitter Bootstrap, thus: <ul class="nav nav-pills">%3$s</ul>. But, how to ...
0
votes
1answer
162 views

add_filter for where statment issue

I am trying to get start and end dates for posts filtered, and I found the documentation for the 'posts_where' filter, I am just testing it so far, but when ever I add the filter, it seems to pull in ...
2
votes
2answers
263 views

How can I access the “description” of a menu item?

Where you can add your menu in under appearance > menus, I have descriptions in. In my page, I want to be able to echo out that description. Not in the menu, but in my page. How can I access this ...
0
votes
1answer
2k views

register_nav_menus and wp_nav_menu issue, not displaying independent menus

My problem is that wordpress isn't showing the two menu's as separate menus, it just outputs on menu to both positions. URL: http://www.msc-media.co.uk Check the header and footer for the links - I ...
1
vote
1answer
453 views

Different side menu on each page

Does anyone have a solution how to have different side menus on different pages? Do I need to create template for every page? I've registered many nav_menus in functions.php and than used pages ID as ...
1
vote
0answers
117 views

Changing status of Published posts which have less Content to “Draft”

function draftpost(){ global $wpdb; $prefix = $wpdb->prefix; $wpdb->query("UPDATE ".$prefix."posts SET post_status='draft' WHERE LENGTH( post_content ) <500"); } ...
3
votes
1answer
1k views

Create a formatted table-like menu

I've just put the site up a couple weeks ago and adding some more things to it for my friend however there's got to be an easier way to lay content out over wordpress. I've having a hard time with it ...
1
vote
2answers
268 views

How to activate “Description” metabox for menu item programmatically?

I'm creating custom wordpress theme. How can I enable "Description" metabox for menu items (on nav-menu page) by default programmatically?
2
votes
1answer
3k views

Wordpress default menu in database

There are 3 menus in my wordpress(3.5) now. Main menu (default from wp) Footer menu (default from wp) Test menu Now I have kept test menu as default. Where does Wordpress store this thing? I ...
0
votes
1answer
1k views

How to include the 'current-menu-ancestor' class on a custom post type menu in Wordpress?

I need the Wordpress menu to include the 'current-menu-ancestor' class to reflect that site is currently in the recipe section. Supposing I have a recipe custom post type. I have the following code in ...
0
votes
1answer
446 views

An alternative to Wordpress's built-in menu functionality

The main menu on my site contains about 30 items, and I am no longer able to save it. This seems to be a fairly common problem with bigger menus in Wordpress. I am on a dedicated server with very ...
2
votes
1answer
2k views

Add container to nav_menu sub menu

Is there a way I can wrap a div around wp_nav_menu's ul.sub-menu So for example the markup would go from <ul class="menu"> <li><a href="/">Item 1</a></li> ...
0
votes
1answer
115 views

How to call either page name as the nav link or navigation title?

I bascially need to just be able to show the polish translated menu or the english menu. The best way I can think of it is: if($languageCookie=='polish'){ wp_nav_menu(use the navigation label ...
4
votes
1answer
300 views

Remove unusable metaboxes in nav menu management screen

When you visit wp-admin/nav-menus.php and there is no menu you get a set of metaboxes you cannot use. The only thing they do is drawing attention away from the Create Menu dialog. I want to hide ...