wp_nav_menu check both hierarchy fail?

This is correct behavior as far as I can tell, Imagine a scenario where you have a menu with top level items, Page A and Page B, each of which have Category 1 attached as a sub-menu item. Scenario 1 When viewing Post Example X, Attached to Category 1 And Where Category 1 appears twice … Read more

Theme only supports one menu? [closed]

It means that the theme uses wp_nav_menu instead of … wait for it … wp_nav_menus See http://codex.wordpress.org/Function_Reference/register_nav_menus for the function to use wp_nav_menus and be able to configure multiple menus under Dashboard>>Appearances>>Menus See also http://codex.wordpress.org/Navigation_Menus

Theme Location empty

“The current theme does not natively support menus This is your problem. Your Theme does not implement the core WordPress custom navigation menus feature. The primary menu shows all the pages… I assume that it is doing so via a call to wp_list_pages() …and the secondary menu displays the categories by default. I assume that … Read more

Custom menu with different behavior for every item

It is possible to do this using the backend nav menu support, using classes as markers that are then picked via the walker_nav_menu_start_el filter ( which then do queries to grab posts and insert their markup ) e.g. add_filter( ‘walker_nav_menu_start_el’, ‘menu_show_media_post’, 10, 4 ); function menu_show_media_post( $item_output=””, $item = ”, $depth=””, $args=”” ) { global … Read more

Adding numbers inside a span tag in nav menu [closed]

$(“#top .menu ul li”).each(function(i, el) { $(this).children(‘a’).prepend(“<span>” + (i+1) + “</span>”); }); or much better $(“#top2 .menu ul li”).each(function() { var $this = $(this); $this.children(‘a’).prepend(“<span>” + ($this.index()+1) + “</span>”); }); check this out for the difference… http://jsfiddle.net/reigel/aAYCt/

changing host.. data loss

When you migrated the site, you probably failed to sufficiently change the paths in the wp-options table. Dreamhost paths are /home/yourusername/yourdomain.com/ and I would assume GoDaddy paths are something different. When migrating a WordPress site from one host to another, a search and replace in the database is still needed even if the domain name … Read more

Menu Arrow for Child Element

To add arrow for parent elements: jQuery + CSS Solution: JQUERY: jQuery(function($){ $(document).ready(function(){ $(‘ul.sub-menu’).parent().addClass(‘drop-down’); // Add Sub-Menu Class to insert personalized style $(‘li.drop-down > a:first-child’).wrapInner(‘<span class=”menu-bullet” />’); // Add .menu-bullet in span to insert your arrow image background }); }); CSS: div#nav ul li.drop-down a .menu-bullet {display:block; background:url(your_image_path.jpg) no-repeat; padding-left:15px; /* padding left value is … Read more

How can I add a delay to the collapsible menu in Twenty Eleven?

Superfish is a script that will add a delay to the hover action. It is used in a lot of themes, for instance I know it is used in the Thematic Theme. Untested, but I think this is how you’d apply it (based on the docs). function wp88740_enqueue(){ wp_enqueue_script(‘jquery’); wp_enqueue_script(‘hoverintent’, get_stylesheet_directory() . ‘/scripts/hoverIntent.js’ ); wp_enqueue_script(‘superfish’, … Read more