</form></div></div>';
if ( $tour_id = filter_var( $_REQUEST['tour'], FILTER_VALIDATE_INT ) ) {
- echo '<pre>$tour_id: ' . print_r($tour_id, true) . '</pre>';
glm_custom_show_tour( $tour_id );
} else if ( $cat_id = filter_var( $_REQUEST['category'], FILTER_VALIDATE_INT ) ) {
- echo '<pre>$cat_id: ' . print_r($cat_id, true) . '</pre>';
glm_custom_list_categories( $cat_id );
} else if ( ! $catid_id && ! $tour_id ) {
$text_query = filter_var( $_REQUEST['tsearch'], FILTER_SANITIZE_STRING );
global $wpdb, $wp;
$tour_slug = get_query_var('tour', '');
$tour = get_page_by_path( $tour_slug, ARRAY_A, GLM_CUSTOM_POST_TYPE );
- echo '<pre>$tour: ' . print_r($tour, true) . '</pre>';
include 'views/tour_detail.php';
return;
}