Post Başlık-1 (15 tıklanma)
Post Başlık-2 (67 tıklanma)
Post Başlık-3 (4 tıklanma)
Toplam Tıklanma: 86 Tıklanma
Şöyle birşey buldum ama olmadı: https://wordpress.stackexchange.com/questions/51949/how-to-show-total-view-count-across-all-posts-for-an-author
get post meta olarak post_views_count olarak kaydettiriyorum
get_post_meta( $post->ID, 'post_views_count', true )
$author_id = '4'; // do stuff to get user ID
$author_posts = get_posts( array(
'author' => $author_id
) );
$counter = 0; // needed to collect the total sum of views
echo 'Post views by Author:
'; // do stuff to get author name
foreach ( $author_posts as $post )
{
$views = absint( get_post_meta( $post->ID, 'post_views_count', true ) );
$counter += $views;
echo "- {$post->post_title} ({$views})
";
}
echo "
Total Number of views: {$counter}
";