you can use post_status
.
post_status
A comma-separated list of post status types that should be included. For example, ‘publish,private’.
possible values are: (publish|inherit|pending|private|future|draft|trash)
or you can also play with:
include
Only include certain Pages in the list generated by wp_list_pages. This parameter takes a comma-separated list of Page IDs.
more about it here.. http://codex.wordpress.org/Function_Reference/wp_list_pages
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
- Listing all sub-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?
- Need php code’s output to display underneath a Divi Module
- PHP Output also in Child theme, but different
- 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?
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- How to check if feed URL was requested?
- WordPress Infinite Scroll without using any plugin
- How to remove a metabox from menu editor page?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- How to add active class to custom menu using while loop and wp_list_pages
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Get only the grandchildren, not the direct children of page/current page?
- WooCommerce – Display variation custom field value [closed]
- New Plugin Review
- Problems with function on function.php
- Woocommerce HTML email option unavailable
- Use template for posts with a particular category grandparent
- How to add SVG icon above product tab title
- Custom category code not showing all posts
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- jQuery not defined
- Converting HTML Template to WordPress Theme
- WordPress add post format support not working
- Page Automatically Generated from Theme?
- How to hide all child pages with post_query?
- How can I apply_filters from inside a function?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- I want to load in a new class but only if the current page is single-movies.php
- Skt full width basic slideshow problem
- $wpdb->wp_users returning empty value for
- php syntax : [ && ] between commands [closed]
- Which PHP page is the Default Posts Page
- Need to put a script above tag in header.php – WP 5.7.1
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- How to show/hide php table rows based on the content of custom fields
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Prev/Next Links Broken on Static Front Page Pagination
- Isotope Drop Down Categories Filter Function
- How to use array in function to get only value I want
- Apply class to every third list item? [duplicate]
- How to include custom code on a page that’s set to act as homepage?
- What is the best way to define constant options for a theme?
- How to add no follow to specific links?
- add_filter function concatenate string and locate_template function
- Function for simple math doesn’t work what am I doing wrong? [closed]
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How do i wrap woocomerce attribute in list?
- Removing files programmatically
- get_page_templates only return templates with “home” in the filename
- Class property seems to lose scope, attached to save_post action?
- How can I assign separate stylesheets to different pages?
- Execute PHP code only with specific user role
- WP Container Displaying Only on First Page of Archive
- Woocommerce – Exclude variation attribute on specific variation
- PHP function for horizontal Woocommerce thumbnails and badges
- Creating a Function and Call It
- WooCommerce display price before add to cart [closed]
- Show sidebar only to author of post
- How to move a post from one category to another
- Show data obtained from a function and place it in a shortocode function
- how to add custom select field to wordpress edit page
- How to override theme’s public static function inside of a trait?
- Delete empty title_tags, find a h1 heading and echo it
- how to use 2 index.php file One for mobile and one for desktop
- WP_Query To Display Product Of Brand On Taxonomy Page
- How can I export data without using any import/export plugin
- Search for images that width and height is more than 500
- Matching multi user
- Add disclaimer before certain posts and pages
- auto metakey value on post tile
- How do I routinely extract the thumbnail of the most recent post?
- wordpress ajax return 0
- Modify category archive page loop on functions.php
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Check if values exists DB
- Overwriting a Shortcode
- Search box background on a different page template
- WP Ecommerce: Display the “Order Notes” as column in the Sales Log [closed]
- Hide page title
- A next page function with shortcode?
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- Why a class property becomes empty?
- Hide category by tag
- How do I stylize selected comments?