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

Tagged: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: