Counting user post count, including all post_status
-
Hi,
I need to check the users post count with a function. I already have this, the only problem though, is that it only counts posts with the post status of ‘published’.
$user_post_count = count_user_posts( $the_user_id, 'property' ); if ( is_page( array( 'site1', 'site2' ) ) && $user_post_count == "1" )
How do I count the total post count, including ‘draft’ and ‘pending’ etc.?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Counting user post count, including all post_status’ is closed to new replies.