It’s not well documented, but according to the codex, you can pass a ‘type’ variable in the get_comments function. Give this a shot
$comments = get_comments('number=10&status=approve&type=YOUR_POST_TYPE');
Related Posts:
- Why are the comments disabled by default on my custom_post_types?
- Why are comments and trackbacks still getting through for custom post types?
- Display Authors Comments on Profile Page
- List all posts commented by current user
- Custom Comment Types
- modify all posts of a category to “no comments allowed”
- Custom comment status possible?
- feed links for custom post type pages
- Add comments meta fields to comments metabox on post edit screen
- Exclude post_type from admin comments_list
- Recent comments on author page?
- wp_query and comment_parent – select only posts with top level comments
- changing default comment form arguments [duplicate]
- Comment moderation on custom post types
- Automatically check “Allow comments” for custom post type [duplicate]
- How could I create a ‘private comments’ section on a custom post type?
- Disable comments from showing up public for Custom Post Type
- Custom Post Type loops and Disqus
- “Allow Comments” box cannot be checked
- Separate comment section for post type in dashboard
- Count all comments of a custom post type
- custom comments on specific post type
- Insert data on comment post
- get_comments not working on custom post types
- Custom Post Type Set Comments ON by default without show METABOX
- WordPress comments_open for specific user role or post type
- Add custom field in comments form
- Create another comment system for CPT
- How can the recipients and content for comment email notifications on a custom post type be changed?
- Convert comments to Custom Post Type
- How to assign classes to all elements?
- custom comments form for custom post type
- What functions does WordPress use for filtering / sanitizing comments?
- comment_notification_text filter for custom post type
- get comments by current user inside page template
- User-submitted reviews of different custom post types
- Check if user has comment on current post
- Enable comments on custom page type – option not showing in “customize” for theme
- Allow anonymous comments just in a custom post type
- duplicate comment section functionality and call it something else for custom post types
- Send email messages after comment was submitted
- comments hooks on custom post type
- custom comment fields on CPT
- unapprove comments on custom post type
- Enable comments for post when comments meta box removed
- Get the latest comment from a custom post type where depth = 1?
- Why will comments not remain open on custom post types?
- How to add comments to my custom post type but hide it from default WordPress Comments section?
- How to change the comments form title based on post type
- Comments on posts with new custom post type redirected to another post
- Display custom posts, ordered by most commented, without duplicates
- get comments for custom post type
- How to create a discussion post when a custom post is created?
- Adding second comments.php for reviews
- Custom post type updated to support comments, yet comments don’t appear
- Comments not enabled for custom post types
- Turn off comments for given CPT checkbox?
- Author profile comments system
- Custom post type: can’t enable comments by default
- Comment moderation with disqus comments
- add comments custom fields after user is logged in
- Comments are not working on Custom Post Type
- Error 403 when posting comments to a custom post type from a different page
- Comments not working (error not allowed) on posts with custom post status
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Display content from custom meta boxes in revisions
- How can you make permalink work for custom post type and taxonomy?
- Too much recursion error when chosing image from image library for two different meta boxes in one post
- Count custom post types with a specific meta value
- The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null
- Post Rank on Single Post page based on custom field
- Customized first post techniques
- WordPress User Roles, Custom Post Types, and Admin views
- WP_Query that filters based on custom relationship field
- I am having a problem with form updating/editing WordPress post on the frontend
- Combine query_posts() and get_posts() into single query
- How do I create filters for custom post types?
- Customize the Dashboard Menu Editor
- I am having Trouble to get list of Categories of Custom post Type
- Automatically create child custom post when creating a custom post
- How can I have different content for different countries?
- WP_Query parameter conflict
- Create a comments template for custom post types
- Is it possible to add posts and images (auto resize) for custom post types with a script?
- Display custom posts for each category from its custom taxonomy
- Function to limit number of custom post types on homepage – TwentyTen
- Custom Post Type not working with Capabilities
- Add custom post type to query
- Show all post type posts in manage users posts column
- Setting Custom Post Type Parents/Hierarchies
- Modify category permalink to use post type slug
- search results to show individual ACF fields from inside custom posts
- How to get post type archive category title
- Automatically / dynamically populating tags in custom post type
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Roots: Custom Post Type 404 Not Found [duplicate]
- Nested loop called with shortcode duplicating the content above the main loop
- Pagination for event query
- Post object GUID adding http:/