'job_listing', 'author' => $author->ID, 'post_per_page' => -1, ); $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] : ''; 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 ); } ?>

' . 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 '
'; ?>