WP_Post is not an array