Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Most popular Posts ordered by Comment Count

Display the “Most Commented Posts” on the site.

// WP_Query arguments
$args = array (
	'post_type'              => array( 'post' ),
	'orderby'                => 'comment_count',
);

// The Query
$query = new WP_Query( $args );