wp_get_nav_menu_items wp-admin/customize.php problem

Hello what can I do I somehow get the following error on the custom panel at admin panel. Normally there is no problem on the menu. I only get an error when I enter the Customize page to live the theme live. Fatal error: Uncaught exception ‘Exception’ with message ‘Supplied nav_menu_item value missing property: target’ … Read more

Second nav is merged with the first in mobile

When I load the website (https://notes.goncaloperes.com) on mobile one can see the two menus/navigations that exist However, when it loads, the two navs are merged and the second menu buttons can only be found in the burguer menu on top. The primary nav looks fine on the burguer menu, however, it would be helpful to … Read more

Highlighting the current page in a navigation menu which links are generated with a custom loop?

This is a second navigation menu I’m using: <ul id=”forums”> <?php $custom_posts = new WP_Query(); ?> <?php $custom_posts->query(‘post_type=bbp_forum’); ?> <?php while ($custom_posts->have_posts()) : $custom_posts->the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/11886/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></a></li> <?php endwhile; ?> </div><!– #access –> Is a custom loop … Read more

BuddyPress – How to add logout in nav menu

How to add a logout option to the main nav menu (not to the top bar) in BuddyPress? 1 Answer 1 Google is your friend. Here is a snippit I found I didn’t test it but seems logical. // functions.php function add_login_logout_link($items, $args) { if(is_user_logged_in()) { $newitems=”<li><a title=”Logout” href=””. wp_logout_url(‘index.php’) .'”>Logout</a></li>’; $newitems .= $items; } … Read more

adding .current* tags to custom post types and taxonomies

TwentyTen adds some classes to custom menus, for instance: #access #menu-item-262.current-menu-item, #access #menu-item-262.current-menu-ancestor All the top-level links in my primary navigation have the class .current-menu-ancestor when the user is on a child page — except when I’m viewing content in the custom post type I’ve built. How do I set the current page in navigation … Read more