determine if specific page is in list?

If you just need to remove, or ignore, it from $pages, use the exclude argument instead; $pages = wp_list_pages( array( ‘exclude’ => get_option( ‘page_on_front’ ), ‘child_of’ => $parent, ‘parent’ => $parent, ‘sort_column’ => ‘post_title’, ‘title_li’ => ”, ‘hierarchical’ => ‘0’ ) ); I’ve used wp_list_pages as I assume this is the function you’ve intended to … Read more

Using Different nav_menu_css_class for different nav_walkers

The third parameter passed into nav_menu_css_classes should give you the information you need to sort out the different menus. Try: function onpage_nav_menu_css_class($classes, $item, $args) { var_dump($args); return $classes; } add_filter(‘nav_menu_css_class’, ‘onpage_nav_menu_css_class’, 1, 3); Note: That will make a mess of your page. It is debugging/development only code. I think that the theme_location should be sufficient … Read more

How to accomplish a child page navigation?

I’m outlining a solution for you, it uses get_children to determine if there are any, then conditionally sets up the post id $p_id for the child_of parameter, so that the list of child pages from a certain parent always can be shown, by making use of wp_list_pages(). Code: function wpse125273_child_page_nav() { global $post; $args = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)