Why don”t you use get_page_by_title()
to get the page object, and then pass its ID as the child_of parameter?
If you would rather use the actual slug, then get_page_by_path( $slug )
should do the trick.
So:
if ( $page = get_page_by_path( 'your-page-slug' ) ){
wp_list_pages( 'orderby=name&depth=1&order=DESC&show_count=0&child_of=" .$page->ID . "&title_li=' );
}
Related Posts:
- Can I have two child pages of different parents with the same name?
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Check if page has subpages
- How to make in post Parent page children page list nummbered
- How to set post slug when using wp_insert_post();?
- Check if is on child-page of a particular page
- A check for if is parent page, if has children, if has grandchildren
- Create a “Dummy” parent page for a hierarchy in page listing?
- Allow only new sub-pages to be created
- Creating a template using a specific slug name, for a page with a parent page
- Is there a default template file for child pages / subpages?
- Get Permalink for the top level parent of child pages
- Some pages are missing from the Parent Page select in the Editor
- How to display list of child pages of parent page in wordpress?
- How does wordpress calculate the page depth?
- Only allow new subpages to be created
- Can’t change parent page
- Check whether the child page has siblings
- Show child pages when on a child page
- How to echo excerpts with wp_list_pages?
- select a private page as parent for another private page
- Extra title output with this function wp_list_pages
- Slug is redirecting to 404
- Using page slug in array
- WordPress pages with hierarchy
- load common thank you template with different content for different pages
- remove/hide pages from users backend
- List all-childpages on parent-page AND list child-pages on childpage itself but not the current one?
- get_pages() & “child_of”
- Removing Parent Page URL While Keeping the Navigation Intact
- Organizing Your Pages
- Create a page that’s to not be indexed or accessible via slug
- Get the ID of the direct parent page
- Custom page template for multiple pages
- Can a user find a child page?
- Display child pages in sidebar of parent page in wordpress
- Get the Current Page Slug-Name
- Get parent of current page
- Display child pages in a parent page? [closed]
- Redirect page to default subpage
- How to list a page tree?
- Attachment pages stealing page slugs
- List all posts with the parent or grandparent of a page with a specified ID
- Post Fetching Ignoring Sort_Column?
- Exclude pages by menu order
- Page access only from a specific page in wordpress website
- Change page name in admin list
- Check if the child page has sibling pages, and bookmark current page
- Is it possible to restrict access to specific pages in the admin area based on the page slug?
- Is it possible to change slugs’ default behaviour?
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- Listing all child-pages of a parent-page on the parent-page and each child-page?
- How to control display of page lists on sidebar that doesn’t have childrens
- Exclude child pages args array
- How should I set up a Tumblr blog at a WordPress Page?
- Page Slug Won’t Change – Can’t Edit Archive Page With Slug or Reassign Slug
- Search anything from a Child and Sub-Pages of their Parent page
- Can’t find the page that is using a slug
- Translate dashboard metabox
- Include parent page in list of child pages
- How to get an array of pages ID by some page’s slug and all its children pages in get_posts() function?
- Return true if parent page id matches
- wp_list_pages get the hole hierarchy for current page
- If page or sub page not working as expected
- Remove and change pages label
- How to use wp_dropdown_pages or wp_list_pages to accomplish a menu like this?
- How do I locate a third party page represented as a slug in my WordPress website?
- Cannot use old slug – it just 301s to site home page
- Display grandchild page content on parent page
- Get All Pages as strings in array
- Display inner pages like posts.[Like how post excerpt works]
- How to show the view more on my display of pages shortcode
- Childpage title + content on Parent Page
- How to copy specific page content and create child page?
- Why is wp_list_pages altering $post->ID of the page?
- Pages redirecting to homepage
- Firing page_publish where page is child page
- How to finish this loop?
- How To List Sibling Pages And Include The Featured Image?
- displaying child pages in columns when on a parent page
- Get current post’s child page?
- Woocommerce – Making product pages child of shop
- Using Page/Post Slug In Link / URL
- List of pages – AJAX load more
- Custom wp_list_pages() function
- Slug of a child page is accessible with and without the parent slug in the URL
- How do you add a filter to wp-block-page-list?
- Is it possible to get a page link from its slug?
- Add infinite scroll to content splitted post
- Check if wp-login is current page
- How to get current page ID outside the loop?
- Contact Form on WordPress Sites?
- Page returns 404 with POST variables, but not without
- Custom templates not showing up in template dropdown
- Get page id by template
- Using pre_get_posts on true pages and static front pages
- Get the content of a specific page (by ID)
- How to get page title with the page ID?
- Show more than 20 items in pages or posts edit dashboard