I am using the WP Job Manager for WordPress and currently have the following code in my theme that pulls jobs and displays them on my homepage.
<?php
$jobs = get_job_listings( array(
'posts_per_page' => 3,
'orderby' => 'date',
'order' => 'DESC'
) );
if ( $jobs->have_posts() ) { ?>
<ul>
<div class="container">
<?php while ( $jobs->have_posts() ) : $jobs->the_post(); ?>
<?php get_job_manager_template_part( 'content-widget', 'job_listing' ); ?>
<?php endwhile; ?>
</div>
</ul> <?php
//* Restore original Post Data
wp_reset_postdata();
}
?>
It's simple and it works but what I would like to do is display only the jobs from a specific country.
I'd like to list all of my jobs from the UK on one page. All of the jobs from Germany on another and then show all jobs that are NOT based in the UK or Germany on a third page.