I am trying to use the total posts count currently i am using the this query
$args=array(
'author' => $userID,
'post_type' => 'post',
'post_status' => $poststatus,
'posts_per_page' => 212
);
<?php echo count_user_posts($args); ?>
$poststatus
have 2 options draft
and publish
. But when i run this query one condition work good and that is publish
. but when i try to run draft
it not showing correct count of draft posts. So tell me where i am wrong in the query.