Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Comment Query

// WP_Comment_Query arguments
$args = array (
	'status'         => 'approve',
	'type'           => 'comment',
	'post_type'      => 'posts',
	'number'         => '10',
	'offset'         => '50',
	'order'          => 'ASC',
	'orderby'        => 'comment_approved',
	'count'          => true,
);

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

// The Comment Loop
if ( $comments ) {
	foreach ( $comments as $comment ) {
		// do something
	}
} else {
	echo 'No comments found.';
}