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 do I query a custom post type with a custom taxonomy?
- what is the correct way to compare dates in a WP query_posts meta_query
- Use register_post_type() to modify an existing post type
- How to get post content by calling ajax?
- How to show all posts of the category in wordpress?
- Get the ID of the latest post
- Using meta_query, how can i filter by a custom field and order by another one?
- Custom post type pagination 404 fix?
- Return all custom meta data for one custom post type
- Display a query with multiple post types and same relationship on a single page
- Fail to compare dates in meta_query
- How to filter custom posts by tags and custom fields?
- Per Post Type Revision Numbers
- Order by & include array by specific post ids
- How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
- Get list of all registered post types slugs
- How to call a custom post with get_posts() instead of query_posts()?
- Custom post type archive 404’s with paginate_links
- Automatically create child pages when saving a (parent) page
- Display a list of child posts on parent posts of a custom post type
- 404 on child page when parent page slug is identical to custom post type
- WP_Query ignores post_type in category view
- How to get only posts, pages and custom post types in WordPress
- Create child page within custom post type
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Display Custom Post Type Fields
- How do I implement custom fields without using any plugins?
- Querying custom posts and regular posts
- custom post types don’t appear in RSS
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Limit the post for differents custom post type in the same wp_query
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Retrieving 3 latest post from each of 5 different custom post types
- How to hook get_terms() to only show count of posts that have custom meta
- Using Offset in Custom Post Type Query
- how to group custom post type posts by custom taxonomy terms
- order by meta_value serialized array
- Posts per Page on custom Taxonomy Template
- Using Query Posts With Multiple Post Types And A Taxonomy
- How to get the parent’s taxonomy?
- Loading post content in FancyBox
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- Display posts of custom type in hierarchical order
- Query posts by custom post type and custom taxonomy
- Registered Post Type Isn’t Showing in Admin Menu
- Multiple templates for custom post type
- Query post types with multiple keys
- ascending order custom post type
- posts_nav_link on single post template
- Query not returning CPT posts
- Post Rank on Single Post page based on custom field
- How to get only one category of custom post type?
- Used with meta_query in query_posts works slowly
- Unable to display multiple post types in same query (WPML WP_Query)
- pre get posts changing the query
- Query for posts in 2 taxonomies
- Prevent change with new query_posts()
- How to make an archive page displaying posts in a date range
- Get permalink and title by post name?
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Query in a Hierarchical Custom Post Type for Children vs Siblings
- Custom Post Type sorted by Title
- Get all posts WHERE custom_field is LIKE value
- Quickest way to get last or oldest post date – WP Query
- How to display recent posts added in several custom post types
- ‘category__and’ for custom taxonomy?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- 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
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Child page in custom post throws 404 page not found
- reference the current category being used in the category.php page
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Remove custom post type slug not working for child pages
- List custom post type by custom tax term as page title
- Share parent path between Custom Post Types and Pages?
- Page as a child of a Custom Post Type
- query_posts with a custom post type, a meta_query and sorting by post date?
- Custom query shows custom post types in trash
- How to retrieve a custom post’s capability?
- Can I make WordPress use a custom template for a child page
- Combine query_posts() and get_posts() into single query
- Use get_post_types to query only custom posts types
- how can i get posts from custom post type particular taxonomy category
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- WP_Query | ‘post_type’ doesn’t work
- Sort by custom field is not working
- Custom query works but returns “Undefined Offset: 0”
- Sorting multiple custom post types without a meta key/value pair by sort order
- Custom post types instead of regular post’s categories in a page template
- Change or update WordPress loop based on dropdown selection
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- What’s a better alternative to this code?
- Display custom post type from dynamic custom field