Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Last 10 approved comments on Review post type

Retrieve the last 10 approved comments posted on “Review” post type ordered by comment date.

// WP_Comment_Query arguments
$args = array (
	'status'         => 'approve',
	'type'           => 'comment',
	'post_type'      => 'review',
	'number'         => '10',
	'orderby'        => 'comment_date',
);

// The Comment Query
$comment_query = new WP_Comment_Query;
$comments = $comment_query->query( $args );