New Home

<?php

$args = array(
‘post_type’ => ‘job_listing’,
‘posts_per_page’ => -1, // Display all job listings
‘s’ => isset($_GET[‘s’]) ? sanitize_text_field($_GET[‘s’]) : ”,
‘post_status’ => ‘publish’,
);

$job_query = new WP_Query($args);

// Debugging output
if (current_user_can(‘administrator’)) {
echo ‘<pre>’;
print_r($job_query->request); // Shows the SQL query being run
print_r($job_query->posts); // Lists the returned posts
echo ‘</pre>’;
}

?>

 

Job Listings

Skip to content