queried_object;
$args = array(
'post_type' => 'job_listing',
'post_per_page' => 6,
'tax_query' => array(
array(
'taxonomy' => 'job_listing_category',
'field' => 'slug',
'terms' => $term->slug,
)
),
);
$query = new WP_Query($args);
?>
have_posts()) : ?>
have_posts()) : $query->the_post();
global $post;
$image = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID()));
$category = get_the_terms($post->ID, 'job_listing_category');
$price = get_post_meta($post->ID, '_price_field');
$location = get_post_meta($post->ID, '_job_location');
if (is_array($location)) {
$location = $location[0] ? $location[0] : '';
}
$price = $price[0] ? $price[0] : '';
?>
' . get_the_title() . ''; ?>