FILTER BY
Destination
name; echo '
' . $cust_term_rem . '
' ; }?>
Duration
name. 'days">' . $custom_duration-> name .' Days ' ; }?>
Price
name) . '">' . $custom_price-> name . '' ; }?>
//foreach($custom_terms as $custom_term) { wp_reset_query(); $args = array( 'post_type' => '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'); ?>
echo '
' . $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 '
'; } // } ?>