How do I modify this wpdb query to include posts that have a post_status of publish and draft?
You can use AND and OR statements in MySQL. Try this: $count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts $where AND (post_status=”publish” OR post_status=”draft”)” );