Wordpress - Total User Count who only have posts

Posted by knightrider on Stack Overflow See other posts from Stack Overflow or by knightrider
Published on 2010-05-11T03:17:51Z Indexed on 2010/05/11 3:24 UTC
Read the original article Hit count: 294

Filed under:
|
|

I want to display total number of user who only have posts at Wordpress. I can get all users by this query

<?php $user_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->users;"); echo $user_count ?>

But for the user count only with posts, i think i might need to join another table, does anyone have snippets ? Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about Wordpress