Tag Archives: Popular

Popular posts by comments

<?php
$args = array( ‘post_type’ => ‘movies’,
‘posts_per_page’ => 10,
‘orderby’ => ‘comment_count’,
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo¬†¬† the_title().'</br>’;
endwhile;
?>

Advertisements
%d bloggers like this: