I'm trying to show a list of authors who have posts in a custom post type. What i've done so far is to use the wp_list_authors which only shows the admin posts and doesn't take into account custom posts. What i really want to do is on my Latest news page which has posts from the custom post, 'News' to just show the authors who have posts in that Custom post type.
If anyone could any light to how i can do this then i would be very appreciative :)
Thanks
<?php
$blogusers = wp_list_authors();
foreach ( $blogusers as $user ) {
echo "<li><a href='#' data-option-value='.".strtolower($user->user_login)."'><div class='flag'>".get_avatar($user->ID, 'description', true).'</div>' . $user->user_login ."</a></li>
"; }
?>