Şöyle bir fonksiyonum var özel alan olarak ekli.

function goruntuleme_goster($postID){
$count_key = 'goruntuleme';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
return "0 Görüntüleme";
}
return $count.' kez dinlendi.';
}

// function to count views.
function goruntulemesayi($postID) {
$count_key = 'goruntuleme';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
$count = 0;
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
}else{
$count++;
update_post_meta($postID, $count_key, $count);
}
}
?>


Bunu kullanarak en çok dinlenen 10 gönderiyi nasıl sıralatabilirim?

Ek Olarak: