Job Board Query
// WP_Query arguments
$args = array(
'post_type' => array( 'UGS_our_job_post' ),
'post_status' => array( 'Published' ),
'nopaging' => false,
'posts_per_page' => '20',
'posts_per_archive_page' => '20',
'order' => 'DESC',
'orderby' => 'date',
);
// The Query
$jobBoard = new WP_Query( $args );
// The Loop
if ( $jobBoard->have_posts() ) {
while ( $jobBoard->have_posts() ) {
$jobBoard->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();