iyi günler arkadaşlar WP-PostViews ile ençok okunan yazıları listelete biliyoruz.
peki WP-PostRatings ile en çok oylanan yazıları listelete biliyormuyuz eğer öyle birşey varsa nasıl yapabiliriz
WP-PostRatings Yardım |
6 Mesajlar | 962 Okunma |
$most_rating = new WP_Query( array( 'posts_per_page' => 10, 'meta_key' => 'ratings_users', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
while ( $most_rating->have_posts() ) : $most_rating->the_post();
?>
$most_rating = new WP_Query( array( 'posts_per_page' => 10, 'meta_key' => 'ratings_score', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
while ( $most_rating->have_posts() ) : $most_rating->the_post();
?>
$most_rating = new WP_Query( array( 'posts_per_page' => 10, 'meta_key' => 'ratings_average', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
while ( $most_rating->have_posts() ) : $most_rating->the_post();
?>
$most_rating = new WP_Query( array( 'posts_per_page' => 10, 'meta_key' => 'ratings_users', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
while ( $most_rating->have_posts() ) : $most_rating->the_post();
?>
$most_rating = new WP_Query( array( 'posts_per_page' => 10, 'meta_key' => 'ratings_score', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
while ( $most_rating->have_posts() ) : $most_rating->the_post();
?>
$most_rating = new WP_Query( array( 'posts_per_page' => 10, 'meta_key' => 'ratings_average', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
while ( $most_rating->have_posts() ) : $most_rating->the_post();
?>