diff --git a/inc/widgets/widget-popular-posts.php b/inc/widgets/widget-popular-posts.php index 19a3c05..4cc8cbb 100644 --- a/inc/widgets/widget-popular-posts.php +++ b/inc/widgets/widget-popular-posts.php @@ -44,12 +44,10 @@ function widget( $args, $instance ) { $number, + 'posts_per_page' => $number, 'ignore_sticky_posts' => 1, 'post_status' => 'publish', - 'order' => 'DESC', - 'meta_key' => 'post_views_count', - 'orderby' => 'meta_value_num' + 'order' => 'DESC' ) ); ?> @@ -76,7 +74,7 @@ function widget( $args, $instance ) { $number, + 'posts_per_page' => $number, 'post_status' => 'publish', 'ignore_sticky_posts' => 1 )) ;