function carrental_category($params) { $category_id = $params['id']; // test if category exists // Locations + business hours $locations = CarRental::get_locations(); $vehicle_cats = CarRental::get_vehicle_categories(); $vehicle_names = CarRental::get_vehicle_names(); $params = array('cats' => $category_id); if (isset($_GET['order'])) { $params['order'] = $_GET['order']; } $vehicles = CarRental::get_vehicles($params); $fleet_parameters = CarRental::get_fleet_parameters(true); wp_register_style('jquery-ui.css', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css', array()); wp_enqueue_style('jquery-ui.css'); ob_start(); include get_file_template_path('our-cars.php'); $box = ob_get_clean(); return $box; }