List top 5 authors by number of posts

Adding this snippet to your wordpress theme will list the top five authors in order by the number of posts.

 

 

<?php foreach ( get_users('order=DESC&orderby=post_count&number=5') as $user ) : ?>
<?php echo $user->display_name; ?> (<?php echo $user->post_count; ?> Posts)
<?php endforeach; ?>

Be Sociable, Share!

Leave a comment