easy just pass it the $id off which to get the children
global $id;
wp_list_pages("title_li=&child_of=$id");
of if you want in the loop then
wp_list_pages("title_li=&child_of=$post->ID");
Related Posts:
- Multiple is_page() in page.php
- class=”parent” for wp_list_pages?
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- syntax issue on php 7.4
- How do I publish only one page to production after making changes on staging?
- Can’t load WP function into external function
- Can’t get page content in WordPress
- Way to querry data (tags) from a wordpress database?
- Populate editor with some content of a page with a page template
- Create Page To Count Comments For Each Post In WordPress Site
- Inject class in body when particular page template is used
- Use .php file as page instead of wordpress page & template file?
- Use WordPress function in php file
- How to use theme function in post/page?
- Apply class to every third list item? [duplicate]
- Need php code’s output to display underneath a Divi Module
- How do i wrap woocomerce attribute in list?
- PHP Output also in Child theme, but different
- How to Display a List of Child Pages For a Parent Page in WordPress
- A function to get the content of a page
- Getting page / post URL on publish and / or update
- How to return a Boolean for a page that is a subpage thru its name?
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- Mega Menu Walker
- Displaying Logged-In User Name in WordPress Menu
- Autoloading in Child Theme
- How to add a class to the attachment images
- How to correct schedule my event weekly with wp_schedule_event()
- Execute a shortcode when clicking on a image
- Help with a custom page template – listing contents of childpages?
- How can I default to all WordPress roles when parameter is not included in shortcode?
- Recent post display using shortcode
- How can the plugin directory path be returned into ?
- How to speed up a wordpress function with multiple loops?
- How can I use wp_insert_comment to write a comment when a post is edited?
- How do you add customer capability after Woocommerce purchase?
- Add a class to the anchor tag on HTML5 gallery
- Conditional Header in wordpress
- Menu — How to add “current-menu-grand-ancestor” css class
- functions.php is being included twice, creating PHP fatal errors
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- How to put a variable in a instance in the widget
- Calling directories to load in wordpress
- Show categories then when clicked on a category list all sub category and when clicked show all posts in that sub category
- Use DOMDocument with ob_start breaks my HTML code
- Display a specific category of products in shop page and disable code for specific actions
- Removing “wpautop” (auto tags) only on certain pages?
- trigger html cleanup for all posts
- Validation algorithm in checkout field
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- Add class to group inner container
- Illegal string offset in PHP function
- How to check if the current page is at a specified path in the URL?
- Find hours between post_date and post_date_gmt
- Run a code only on theme activation only during first activation
- Shortcode from a function not working
- Displaying text if post was within 5 hours
- Creating WordPress Shortcode with Variable
- Convert the_permalink() function output into string
- Adding a tag_ID column into Categories inside the admin dashboard?
- Add meta tags to a custom header
- get_current_site() is undefined
- Automatically Add Page Links to Nav Menu
- blank white page when post/update/change option etc
- Function sanitize_title() does not appear to be working
- Display child page content of a specific parent on home page
- writing an unique php function to be used on my website
- How to prevent a function from running based on host (ie web vs local)?
- How to change the author box selection on a post to a custom taxonomy
- Output product category link from WP_Query
- Adding onload to body for certain pages
- Delete images from media library when user deletes an image from ACF Gallery
- Reject all malicious URL requests functions.php
- How to send a php var to jQuery Ajax call with two different file
- Change wordpress’ database data using ajax – how to get current user id?
- not outputting medium size image URL
- Best way to use variables in multiple functions?
- Notice: Undefined variable
- Cannot fetch posts with certain ‘product_cat’. WP_Query is empty
- How to override WooCommerce Order Item Meta with data from Cart?
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Offset with ajax load more posts duplicates
- How fix error in the WordPress loop?
- Need help with PHP functions
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- WordPress styling recent post
- syntax error unexpected ‘}’ at 364 line
- get_post_meta no longer working
- Highlight posts currently being edited on multiple editor site?
- Showing all post from all post type in admin backstage
- Shortcode to include PHP file, pass various parameters to include?
- Why can’t I include echo inside a variable? [closed]
- Assign new post author IF another user in custom field on post transition
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- How do I change the Go To Categories link in the term_updated_messages
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- Understanding responsive imagery
- Why a class property becomes empty?
- How to get meta box labels?
- How do I stylize selected comments?