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.