* Date: 12/14/2015 * Time: 3:03 PM */ get_header(); ?> <main> <div class="container"> <section id="search"> <?php get_search_form(); ?> </section> <section id=""> <?php $taxonomies = 'tour_group'; $tour_groups = get_tour_groups($taxonomies); foreach ($tour_groups as $tour_group) { ?> <div class="card-panel"> <h1><a href="<?php echo get_term_link($tour_group->slug, $taxonomies); ?> "><?php echo $tour_group->name; ?> ...</a></h1> <div class="row"> <?php //get all tour by term $ndt_tours_query = get_ndt_tour_by_tour_group_loop($tour_group->slug, 4); while ($ndt_tours_query->have_posts()) {
* Date: 12/18/2015 * Time: 1:51 PM */ ?> <form role="search" method="get" class="search-form card-panel white" action="<?php echo home_url('/'); ?> "> <h1><?php echo __('Search'); ?> </h1> <?php $locations = get_locations(); $tour_groups = get_tour_groups('tour_group'); ?> <div class="row"> <div class="input-field col m5 s12 push-m1 "> <select id="location" name="plocation"> <option value="" disabled selected>---<?php echo __('An Awesome Place'); ?> ---</option> <?php foreach ($locations as $location) { echo '<option value="' . $location->ID . '">' . $location->NAME . '</option>'; } ?> </select> <label for="location"><?php