<?php
//get all users, iterate through users, query for one post for the user,
//if there is a post then display the post title, author, content info
$blogusersz = get_users();
$the_authord= get_the_author_ID();
if ($blogusersz) {
foreach ($blogusersz as $bloguser) {
$argsz = array(
'author' => $the_authord,
'showposts' => 1,
'orderby' => rand,
'caller_get_posts' => 1
);
$my_queryzz = new WP_Query($argsz);
if( $my_queryzz->have_posts() ) {
// $user = get_userdata($bloguser->user_id);
// echo 'This is one post for author with User ID: ' . $user->ID . ' ' . $user->user_firstname . ' ' . $user->user_lastname;
while ($my_queryzz->have_posts()) : $my_queryzz->the_post(); ?>
<a style="margin:7px;" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail( array(50,50) ); ?></a>
<?php
endwhile;
}
}
}
?>