Can you exclude child pages of a specific parent within a navigation?

try -: if your page ID = 999 <?php $child_ids = $wpdb->get_col(“SELECT ID FROM $wpdb->posts WHERE $wpdb->posts.post_parent = 999 AND $wpdb->posts.post_type=”page” AND $wpdb->posts.post_status=”publish” ORDER BY $wpdb->posts.ID ASC”); $exclude = implode($child_ids,’, ‘); wp_list_pages(‘exclude=” . $exclude . “&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’); ?>

Custom nav menu not showing

Maybe you are doing it wrong? Here’s a pointer… In functions.php // This theme uses wp_nav_menu() in one location. register_nav_menus( array( ‘primary’ => ‘Primary Menu’, ) ); In header.php (or elsewhere) <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>

Buggy wp_nav_menu?

For some reason (and it’s not entirely clear why). The News page is considered a parent of the category page equipamientos. There’s something wrong here – as the menu, sub-menu and sub-sub-menu in your code are all seperate entities, and the page ‘News’ and categories don’t normally have any relationship. Similar your page Proyectos and … Read more

wp_nav_menu not appearing correctly on category page

Don’t call Nav Menus by menu_id. Rather, define an explicit theme_location for each place in your Theme template at which you want to include a Nav Menu, and then use that theme_location as the parameter passed to wp_nav_menu(). In this case, you’ve defined a header-menu Theme location, so change this: <?php wp_nav_menu( array( ‘container_class’ => … Read more