Adding existing links to custom navigation menus?

You can’t add link/blogroll type items to the main navigation – add them as custom links instead. [Update] To be more precise, you could do it, but you would need to write some code that hooked into the menu creation/editing section, present a list of blogroll links in a metabox, allowed you to choose from … Read more

How do I access the menus produced by Dashboard > Appearance > Menus

First: Use, for options(), the Settings API (tutorial). Second: Take a look at the core function and the available filters. Then take a look at the available filters: $sorted_menu_items = apply_filters( ‘wp_nav_menu_objects’, $sorted_menu_items, $args ); $items = apply_filters( ‘wp_nav_menu_items’, $items, $args ); $items = apply_filters( “wp_nav_menu_{$menu->slug}_items”, $items, $args );

Review site custom post type structure

The way that I would approach it is using the tax_query to create a query that looks for both the correct genre and type. For example, to query all Movies that are Drama: $myquery[‘tax_query’] = array( array( ‘taxonomy’ => ‘genre’, ‘terms’ => array(‘drama’), ‘field’ => ‘slug’, ), array( ‘taxonomy’ => ‘type’, ‘terms’ => array(‘movie’), ‘field’ … Read more

wp-custom-menu filter removes the current_page_item class

After few hours of debugging I found out, that the wps_custom_nav_menu_items() actually receives the nav_menu_items with classes, applied by the _wp_menu_item_classes_by_context, but instead of using them, it reloads the entire menu from the database! So if you change $nav_items = wp_get_nav_menu_items( $menu_id ); To $nav_items = $args; (or just remove the line and rename the … Read more

menu link to custom post_type?

ok – got this working with a walker in the end; (added a custom directors link to the menu) class Director_nav_links extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { global $wp_query; $indent = ( $depth ) ? str_repeat( “\t”, $depth ) : ”; $class_names = $value=””; $classes = empty( $item->classes ) ? array() : … Read more

Make a navigation menu in the same post [duplicate]

You can simply put The code in the php file in your theme.If you use twentyeleven theme open content-single.php, find the line <h1 class=”entry-title”><?php the_title(); ?></h1> And after it put your divs and top menu. Another option is to create a widget where you could easily update the html code. Instead your divs, below this … Read more