You can display child pages of particular parent foo page using following code ( using parent page ID ):
$the_query = new WP_Query( 'post_type=foo&post_parent=93' );
// The Loop
while ( $the_query->have_posts() ) :
$the_query->the_post();
echo '<li>' . get_the_title() . '</li>';
endwhile;
Related Posts:
- Multiple post type queries (with specific arguments for each)
- List children on child post
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- How to get post content by calling ajax?
- Display a query with multiple post types and same relationship on a single page
- Fail to compare dates in meta_query
- Order by & include array by specific post ids
- How to call a custom post with get_posts() instead of query_posts()?
- Custom post type archive 404’s with paginate_links
- How do I implement custom fields without using any plugins?
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Limit the post for differents custom post type in the same wp_query
- Retrieving 3 latest post from each of 5 different custom post types
- how to group custom post type posts by custom taxonomy terms
- order by meta_value serialized array
- Registered Post Type Isn’t Showing in Admin Menu
- Multiple templates for custom post type
- posts_nav_link on single post template
- Query for posts in 2 taxonomies
- Prevent change with new query_posts()
- How to make an archive page displaying posts in a date range
- Custom Post Type sorted by Title
- Get all posts WHERE custom_field is LIKE value
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- Display custom post types with custom date field value (before today) & order by custom date field
- Child page in custom post throws 404 page not found
- reference the current category being used in the category.php page
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Custom query works but returns “Undefined Offset: 0”
- What’s a better alternative to this code?
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Page template with different page and post content
- Order query using custom meta data
- Get latest 3 posts from multiple CPT in one query
- will post_id ever change? Can I safely use post_id for custom queries?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Limit amount of posts made within a custom taxonomy
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Removed custom post type slug but not working for child pages
- Query posts based on the meta key values of logged-in users?
- BBPress Search results in WordPress search
- pagination not working for category.php (custom post types in categories)
- get_the_post_thumbnail_url(‘full’) returns empty from custom post type
- single-{post_type}.php not working
- query_posts adding extra code to homepage
- Can I change my post type to anything and my site still work?
- List of child custom post types lists all custom post types
- Why are some of my custom posts not showing up on my page?
- post-per-page and offset not working
- Redirect to first child on Custom Post Type (without template)
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Getting all ID’s matching a title in a custom post type
- Count custom post type based on two meta data
- attach CPT data to a taxonomy
- Remove taxonomies using register_post_type_args
- post_type internal ID?
- Dynamic pages for linked categories and content
- postsperpage value not being applied
- get_post_types not working properly in admin
- Incorrect ordering of custom post type based on time
- Post Type => Any conundrum
- Query Custom Post Type based on text input
- If/Else child list for Custom Post Type single template within loop?
- Custom Post Types Not Showing Up In query_posts Result
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Sticky posts limit query and pagination for a custom post type
- Custom post type archive page filters
- custom post type and user post count shortcode
- Get all post types that supports tags
- How do I find out which (page) template file my custom child post is looking for?
- Use WP_query to match post types based on custom field values
- minimize wp_query call to database
- Group Custom Posts Types in a Relation field of ACF
- Can I show some specific post rather than latest post?
- How to mix 2 kinds of post types
- Shortcode in excerpt
- Custom post type post_type_link gives “page not found” on any other custom post type
- How to set a default CPT template and create post attribute´s display rules?
- WordPress custom post type and page
- How to set class to “current-page” on the currently viewed single post within a CPT
- Imported Content Doesnt Show Up On Frontend
- Optimise custom post type queries
- Pulling in Related Posts based on Post Type array
- Display 2nd category, only once, as sub-heading, in the loop
- Filter RSS feed for custom post type to events for next 7 days only
- query_post causes the posts to be loaded twice on load more posts
- Ordering custom post type by custom field without a title
- How can I list custom post by custom category?
- Query Posts From Multiple Post Types
- Return only custom post types for the page, not all
- WP Build-In Post selector for CPT
- How to apply order on custom taxonomy and custom meta key on custom post type
- send user to first page of results when reposting to page?
- Query custom type posts by array of IDs
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- Render a loop in Timber (twig for WordPress)
- show custom post’s post in two different divs [duplicate]
- Trying to set up a range filter for related custom post types
- Assign a tag to custom post type using a query
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method