If you are willing to add more filter options to the search filters available on the theme homepage, then worry not WP Travel plugin provides the feature regarding adding more filter options using a filter code.
For more information, refer to the Custom Filter feature page
You might be interested: How To Add Custom Filters Using WP Travel Pro?
Table of contents
Steps to add more filter options to the search filters
Step 1: Add the given code in the functions.php file

To add the Trip Type filter and the Keyword filter, please add the following given code in the functions.php file of your child theme.
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' => true,
'location' => true,
'activity' => true,
'travel_keywords' => true,
);
return $filter_search;
}
For detailed information on creating a child theme, please refer to our Knowledgebase.
Step 2: Show the filter option using the filter code

You can show the filter option according to your choice using the filter code.
For example, let’s show the Keywords filter and Trip Type filter please add the following given code in the functions.php file of your child theme.
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' => false,
'trip_type' => true,
'location' => false,
'activity' => false,
'travel_keywords' => true,
);
return $filter_search;
}
Output

Also, if you want to learn more about the filter hook that is available in the WP Travel plugin, please refer specific hook page
Conclusion
Adding more filter options to your trip search is simple with WP Travel Pro. By using the available filter hook and inserting a few lines of code into your child themeβs functions.php file, you can easily display custom filter fields like Trip Type and Keywords. This allows you to tailor the search experience based on your business needs and user preferences. Whether you want to refine your filtering system or improve user navigation, WP Travelβs flexible hook system makes customization quick and efficient.
Check WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.
Your feedback helps us improve. Please share your thoughts.
Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.
You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.
If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

WP Travel Editorial is a team of WordPress and travel industry experts dedicated to delivering technical resources, travel business guides, and general travel insights. With over 10 years of experience, the team provides in-depth release notes, feature updates, and informative articles to help tour operators and travel enthusiasts succeed in the evolving travel landscape.
From plugin updates and industry trends to practical travel resources, WP Travel Editorial shares valuable content that supports both the travel industry and avid travelers.





