Counting the number of posts (custom post type) Query problems
The wp_count_posts function has parameter $type for post type to count, you should use this parameter if you want to get number of jobs like so: $count_posts = wp_count_posts( ‘jobs’ )->publish;