wp_list_pages to show all pages on all sub pages

Use this WP function get_pages() and get_page_children() function get_child_pages( $parent_page_ID ){ $all_pages = get_pages( array( ‘post_type’=> ‘page’ ) ); $child_pages = get_page_children( $parent_page_ID, $all_pages ); if( !empty( $child_pages ) ){ $html .= ‘<ul>’; foreach ( $child_pages as $key => $child_page ) { $html .= ‘<li>’.$child_page->post_title; get_child_pages( $child_page->ID ); $html .= ‘</li>’; } $html .= ‘</ul>’; … Read more

Only show top-level links in site navigation

Had you tried depth argument (see wp_nav_menu() documentation)? Also do I understand right that you do not setup menu manually and let theme generate it with custom callback that you have in your code? Update Same answer – try depth argument, only this time in wp_list_pages() call in starkers_menu() function. It should work, unless that … Read more

Fallback_cb is messing around with containers

basically you are missing the container div so if you change your fallback to a custom function you can pass parameters to wp_page_menu that give you a bit of control over it and add your missing div try: $wp_nav_header = array( ‘container’ => ”, ‘menu_class’ => ‘sf-menu’, ‘fallback_cb’ => ‘my_fallback_menu’, ‘theme_location’ => ‘primaryheader’, ‘depth’ => … Read more

Inserting specific images inside navigation menu

This can be done easily with CSS. I would use the default wp_nav_menu() function to do the heavy lifting for you and build your menus under Appearance->Menus. If you click on screen options there is a checkbox under advanced menu properties called CSS Classes. Check that box. When you add a new menu item, you … Read more

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