i have something i already crated for this purpose so you need to change it
if you don't like how its displayed... anyhow:
In My Opinion you need to:
1. Grab all the authors (into an array)
2. Run trough that array while building the list
3. Kick back and enjoy the results ;)
Please Note...
I think its a bad idea to show all writers in one page
because it might take a lot of time to load so you can
set the amount of authors you wish to show by changing
the variable: $howManyAuthors
Someone else is due credit for the original code but its
long ago since i took it and customized it... if your
checking this out mate - thanks
<div class="authorsContainer">
<?php
//define vars from user selection
$howManyAuthors = 50;
//Get users and count of posts put into array
$authorsArray=array();
$blogusers = get_users_of_blog();
if ($blogusers) {
foreach ($blogusers as $bloguser) {
$post_count = get_usernumposts($bloguser->user_id);
$authorsArray[$bloguser->user_id]=$post_count;
}
arsort($authorsArray);
$maxauthor = $howManyAuthors;
$count=0;
foreach ($authorsArray as $key => $value) {
$count++;
if ($count <= $maxauthor) {
$user = get_userdata($key);
$username = $user->user_login;
$displayname = $user->display_name;
$author_posts_url = get_author_posts_url($key);
$post_count = $value;
?>
<div class="topWriterBox">
<div class="topWriterName">
<a href="<?php echo $author_posts_url; ?>"><?php echo $displayname; ?> </a>
</div>
<div class="topWriterArticles"><?php echo __('Published: ', '').$post_count.__(' Articles', ''); ?></div>
<br class="clr" />
<h4><?php _e('Latest Article:', ''); ?></h4>
<ul>
<?php
$args=array(
'showposts'=>1,
'author'=>$user->ID,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post();
?>
<!--============ THE AUTHORS ARTICLE DATA ================-->
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permenent Link To <?php the_title_attribute(); ?>"><?php the_title(); ?></a> <small>(<?php the_time('m.d.y') ?></small>)</li>
<?php
endwhile;
}
?>
</ul>
</div><!-- end of topWriterBox -->
<?php
}
}
}
?>
</div>
.
You can see an example here (its in hebrew <- not an issue, right gil?
Hope this helps,
Cheers, Sagive.