Hello,
Seems you are looking for hiding the middle field from the search form which is the “Itinerary Type” not activities. The code i have provided before is for hidding the activity for that reason the middle field is not hide by the code. Here is the correct one
add_filter( 'wp_travel_search_filter_input_fields', 'prefix_wp_travel_search_filter_input_fields' );
function prefix_wp_travel_search_filter_input_fields(){
$filter_search = array(
'search' => true,
'trip_type' => false,
'location' => true,
'activity' => false,
'travel_keywords' => false,
);
return $filter_search;
}
Please add this code to code snippet. Here you can follow the screen record
https://www.awesomescreenshot.com/video/35533332?key=e7f0cbca4b7e31256f05afd7d60222c4
-
This reply was modified 1 week, 1 day ago by Psink.