'trip', 'post__in' => $best_seller_trips, 'orderby' => 'post__in', 'ignore_sticky_posts' => true, ); $best_seller_trip_qry = new WP_Query( $best_seller_trip_args ); if( $ed_best_seller && ( $best_seller_trip1 || $best_seller_trip2 || $best_seller_trip3 || $best_seller_trip4 || $best_seller_trip5 || $best_seller_trip6 ) ){ ?>

have_posts() ){ ?>
have_posts() ){ $best_seller_trip_qry->the_post(); $meta = get_post_meta( get_the_ID(), 'wp_travel_engine_setting', true ); ?>
'; if( isset( $meta['trip_prev_price'] ) ){ if( isset( $meta['sale'] ) && $meta['sale'] && isset( $meta['trip_price'] ) && $meta['trip_price'] ) echo '
'; if( isset( $meta['trip_prev_price'] ) && $meta['trip_prev_price'] ) echo esc_html( $currency . ' ' . $new_obj->wp_travel_engine_price_format( $meta['trip_prev_price'] ) ); if( isset( $meta['sale'] ) && $meta['sale'] && isset( $meta['trip_price'] ) && $meta['trip_price'] ) echo '
'; } if( isset( $meta['sale'] ) && $meta['sale'] && isset( $meta['trip_price'] ) && $meta['trip_price'] ) echo esc_html( $currency . ' ' . $new_obj->wp_travel_engine_price_format( $meta['trip_price'] ) ); echo ''; } ?>

'; if( $meta['trip_duration'] ) printf( esc_html__( '%s Days', 'adventure-travel' ), absint( $meta['trip_duration'] ) ); if( $meta['trip_duration_nights'] ) printf( esc_html__( ' - %s Nights', 'adventure-travel' ), absint( $meta['trip_duration_nights'] ) ); echo '
'; } if( class_exists('Wte_Trip_Review_Init' ) && $ed_trip_review ){ ?>
get_the_ID(), 'status' => 'approve', ) ); if ( !empty( $comments ) ){ echo '
'; $sum = 0; $i = 0; foreach($comments as $comment) { $rating = get_comment_meta( $comment->comment_ID, 'stars', true ); $sum = $sum+$rating; $i++; } $aggregate = $sum/$i; $aggregate = round($aggregate,2); echo ''; echo '
'.$i.' '. esc_html( _nx( 'review', 'reviews', $i, 'reviews count', 'adventure-travel' ) ) .'
'; echo '
'; } ?>