get_pages()
works with other post types just fine, you only need to pass post_type
you want as part of argument (also I recommend to stick with array notation).
$children = get_pages( array( 'child_of' => $post->ID, 'post_type' => 'your_post_type', ) );
Related Posts:
- How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
- 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
- Create child page within custom post type
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Display posts of custom type in hierarchical order
- Child page in custom post throws 404 page not found
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- Remove custom post type slug not working for child pages
- Share parent path between Custom Post Types and Pages?
- Page as a child of a Custom Post Type
- Can I make WordPress use a custom template for a child page
- Custom rewrite rule for hierarchical custom post type
- List children on child post
- child of post type (custom)
- Child post with numeric only slug keeps redirecting to parent
- Next and Previous Posts of Same Parent
- Display Child Pages of Custom Post Type Parent Page
- Versioned Custom Post Type (Not the same as revisions)
- Custom post Type, child of a Page?
- What code should I use to display children of a custom post?
- Removed custom post type slug but not working for child pages
- List of child custom post types lists all custom post types
- Redirect to first child on Custom Post Type (without template)
- Query to get child pages of current page and display it in action hook
- If/Else child list for Custom Post Type single template within loop?
- Migrate Custom Post Type with Custom Fields data and parent child order
- How do I find out which (page) template file my custom child post is looking for?
- How to use POST method using custom wordpress button?
- Standard Page Child of CPT Not Found (404)
- Display a list of sub-pages of Custom Post Type Parent Page
- I have a problem with displaying children pages of custom post type
- WordPress custom post type and page
- Child Theme problems
- Custom post type child page 404
- Custom Post Type Child Pages
- How can I give WordPress child custom post type the same title and slug as its parent?
- New post status for custom post type
- Adding Custom Post Type Counts to the Dashboard
- How can I filter posts by post_parent in the admin?
- Get Custom Taxonomy ID within loop
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Using Templates with Custom Post Type UI
- WordPress Custom Post Type Admin Page really slow
- How to setup a Custom Taxonomy Term template
- Creating a gallery of featured images from custom post type
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Customize Search Results for Custom Post Type
- RSS feed for dynamic set of custom taxonomies terms
- Related links – from other sites
- Showing Custom Content in a Nav Dropdown
- Display custom post type category taxonomy
- Are there sub-systems in WordPress that would employ data structures beyond CPT that a `get_posts` won’t be able to catch?
- ACF simple text field value not showing
- List Post Title by Last Word Then Second Last
- Query custom post type with tags
- Display post as term id
- WordPress custom post type permalink rewrite shows page not found
- Create a Dropdown from Custom Post Type
- Custom post type conditional in loop
- Showing specific post in order of array wp_query
- Why cant I add a custom post type to a custom taxonomy?
- the_post_thumbnail call removing li in code
- How to display custom post type tags?
- Featured image size in column
- Submitting Custom Post Types with custom fields from Front-end form
- Custom WP_Query always respond with 200 status even when no entry
- Page Template Dropdown For Custom Post Types
- Get_the_terms restrict output
- Can I query posts by taxonomy conditionally based on post type?
- Include custom post type custom taxonomies in Categories widget
- Break up posts per page in two sections
- post_content is stripping HTML when adding a new post? [closed]
- Querying a custom post type, but not show duplicates
- Dynamic category name in query post
- Two queries – one with checkbox ticked, one without – comparing meta_query
- Ignores post_type when no results
- Can I decide what categories show on my posts page?
- Link custom post type to users membership
- WordPress – display relationship between blog posts and custom posts
- Multiple Loops In Tabs Only Displaying First Loop
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Display post in sequence from different custom post_type
- Sort loop by custom field from different post type
- Custom post meta box as a sub form
- Custom meta box data not saving
- Custom post type rewrite and wp_pagenavi interfering with each other
- Custom meta-box for all custom post types
- Retrieve a specific category of posts when using a custom post type
- General question about Parent and Child Post type relationships
- WordPress Load more posts by ajax not working
- Multiple while loops not functioning [closed]
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?
- taxonomies or categories w/custom post
- Require Custom Taxonomy for Custom Type
- Get post from custom post type that title is like custom string [closed]
- Why isn’t page attributes dropdown not showing up in a custom post type
- Query order by a numeric ACF field