Get the latest comments for a custom post type in WordPress

Custom post types for Wordpress support comments, however the API doesn’t allow for retrieving those comments. So in order to get the latest comments from your custom post type you need to do an sql query that does a LEFT OUTER JOIN between the comments table and the posts table: /* Get recent comments */ […]