'job_listing', 'post_per_page' => 6, ); $query = new WP_Query($args); if ($query->have_posts()) { ?>
'; if ($listing_title) echo '

' . esc_html($listing_title) . '

'; if ($listing_description) echo '

' . esc_html($listing_description) . '

'; echo '
'; } ?> have_posts()):$query->the_post(); global $post; if($count == 0){ echo '
'; $count = 1; } $image = wp_get_attachment_image_url(get_post_thumbnail_id($post->ID), 'full'); $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'); $phone = get_post_meta($post->ID, '_company_phone'); if (is_array($price) && !empty($price)){ $price = $price[0] ? $price[0] : ''; } if (is_array($phone) && !empty($phone)){ $phone = $phone[0] ? $phone[0] : ''; } if (is_array($location) && !empty($location)) { $location = $location[0] ? $location[0] : ''; } $rating = ''; if (in_array('comments-ratings/comments-ratings.php', apply_filters('active_plugins', get_option('active_plugins')))) { global $pixreviews_plugin; $rating = $pixreviews_plugin->get_average_rating( $post->ID ); } $page_id = get_option('job_manager_jobs_page_id'); ?>

' . get_the_title() . ''; ?>

'; if($rating) { echo '
'; for ($i = 1; $i <= 5; $i++) { if ($i <= $rating) echo ''; else echo ''; } echo '
'; }else{ echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; } printf( /* translators: %s: comment number */ _n( '(%s Review)', '(%s Reviews)', get_comments_number($post->ID), 'robolist-lite' ), number_format_i18n( get_comments_number($post->ID) ) ); echo '
'; ?>
'; } endwhile; ?>