FILTER BY

name; echo '' ; }?>
name. 'days">' . $custom_duration-> name .' Days ' ; }?>
name) . '">' . $custom_price-> name . '' ; }?>
'all_trips', ); $loop = new WP_Query($args); if($loop->have_posts()) { echo '
'; // echo '

'.$custom_term->name.'

'. $pagetitle . '
'; while($loop->have_posts()) : $loop->the_post(); $tripid = get_the_ID(); $tripimg = get_the_post_thumbnail_url(); $tripdurations = get_the_terms($tripid , 'trip_duration'); $tripdestinations = get_the_terms($tripid , 'destination_taxonomy'); $trippricens = get_the_terms($tripid , 'trip_price'); $tripsnights = get_the_terms($tripid , 'number_of_nights'); $tripsdays = get_the_terms($tripid , 'number_of_days'); ?>
' . $tripterm ; echo '
'; echo '
'; echo '
    '; foreach( $trippricens as $trippricen) {echo '
  • '. $trippricen->name . '
  • ';} echo '
'; echo '

'.get_the_title().'

'; echo'
    ' ; foreach( $tripdestinations as $tripdestination) {echo '
  • '. $tripdestination->name . '
  • ';} echo '
'; echo '
'; echo'
    '; // foreach( $tripdurations as $tripduration) {echo '
  • '. $tripduration->name . '
  • ';} foreach( $tripsdays as $tripdays) {echo '
  • Days
    '. $tripdays->name . '
  • ';} foreach( $tripsnights as $tripnight) {echo '
  • Nights
    '. $tripnight->name . '
  • ';} echo '
'; echo '
'; endwhile; echo '
'; } // } ?>