User count only for role frontend vendor

Question

i use the following code for count the authors

    $count_posts = wp_count_posts( 'download' );
    echo 'Published eBook (' . $count_posts->publish .  ')';
    echo ' ';
    global $wpdb; 
    $user_count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->users;" );
    echo '  Published Authors (' . $user_count . ')';

i need a count from authors who have the role frontend vendor or
who have published a downlaod post.

any idea?
thanks for help

0
, , Mike 9 years 2014-06-28T09:55:19-05:00 0 Answers 92 views 0

Leave an answer

Browse
Browse