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>');
?>
Related Posts:
- Show just one level of child pages, wp_list_pages woe
- How to use wp_list_pages on a grandparent page
- Custom Nav walker display current menu item children, or siblings on no children
- Ways to give a wp_list_pages menu link specific class names?
- wp_list_pages – show pages immediately 1 level below current level
- How do I create a magazine type menu – sub-menu setup using wp_nav_menu and child of twentyten? [closed]
- Handling complex multi-level architecture / menu for large site
- No link on empty page in wp_list_pages
- wp_list_pages sort order is different for different languages [closed]
- wp_list_pages: only show subpages on the parent page?
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- Highlight another nav item
- wp_list_pages() but only show children on the branch you are on
- Displaying different page links on different pages
- How to remove the HOME menu item
- Menu Arrow for Child Element
- Orderby menu_order not working; menu is sorted on publish date
- How can I list the current pages siblings and any ancestor page siblings?
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- wp_list_pages Hierarchical Help
- Wp_list_pages not showing children with custom page template
- horizontal menu / 4-level depth
- wordpress custom menu – show parents, siblings, children depending on depth
- Menu walker: how to tell if a sub menu contains submenus?
- Creating navigation out of specific IDs and their children?
- How to display list of child pages with parent in wordpress?
- wp_list_pages, links only for pages with no children
- “Static” Child Menu with Accordian
- Display all submenus
- Showing Custom Menus in the sidebar
- Second tier sidebar navigation
- Making current_page_item work with wp_list_pages in sidebar on post pages
- How can I structure my pseudo footer nav code with wordpress codex code?
- How do I add a search box to the nav menu?
- How to get IDs for objects in menu branch?
- New post notification in wp_nav_menu
- How to use a WordPress’ existing admin icon?
- How to move parent li to end of child ul
- How to fix strange 500 Error after Editing Menu?
- Remove ‘Menus’ from Twenty Sixteen theme Customizer
- One site, 2 distinct sections: two different top nav menus?
- Can you have different menus and theme on a per-page basis?
- Custom nav walker with different output depending on depth
- Get menu item slug
- Display link with current user’s username in it in Custom Menu
- Walker_Nav_Menu: Items not nested correctly
- Add class to menu ul with active child
- Loop through Navbar, Output Icons
- Custom Walker anchor tag not inheriting attributes
- Check what “type” a menu item is
- Admin only menu/page
- Add within the output of
- Add CSS to head depending on nav menu walker
- WP MU: Using pages from main site in other sites’ menus
- two different separate sections on the same site
- Getting the current menu item id from specific menu
- how to disable default menu classes
- Adding an admin menu page showing the link twice – how to solve this?
- How to customize submenus isn wordpress theme [closed]
- Can I have a different menu for each parent page?
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- Combine 2 categories in one Menu item
- How to align last 3 menu items to the right – WordPress main menu [closed]
- WordPress Menu Exchange On Tablet’s Orientation
- How to add a element with walker menu right after begin of the navigation tags?
- Increase wordpress menu Depth
- How to hide the menu item created by the theme in WordPress admin panel?
- Custom menu walker – remove li tag based on class name
- Hide pages from the main menu
- How to customize the built in menu in wordpress?
- how to insert data in li tag of navigation
- Current author archive in navigation menu
- WordPress Login/Logout Single Menu Only
- If child is active add class to parent in customWalker
- How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?
- How do I remove this menu bar?
- Different Menus based on Category Page
- nav-menu-template and columns in sub menu
- current-menu-item not apllying with wp_nav_menu() on ajax
- Custom link with checkbox that adds additional word to checked menu items
- menu not showing on mobile view
- Hide a menu (navigation bar) on all posts
- Is it possible to have submenu outside of menu element? I dont want submenu to be a child of menu
- Bootstrap Nav Walker Sub Menu Image
- What are some of your favorite methods for creating an accessible menu?
- How to get all the menu listed in Menus Created inside the Apperance Menu?
- Add a menu item to the logged in users author page?
- Add Class to Custom Menu Widget ul
- Add parent link to its submenu
- Can’t change link for navigation item
- Loading wordpress menu in an external server
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- Show only second level menu items? [duplicate]
- Remove link from Page name in navigation bar
- Prevent Menu Shortcode From Formatting
- individual images as navigation design TwentyTen
- Change order that the menu is generated with wp_list_pages
- Setting up menus before making a template live
- Is it possible to add a superscript trademark symbol to a menu?
- Creating a Horizontal menu