WP Travel plugin includes a feature to display related trips on the Single Trip page, helping visitors discover similar tours and boosting engagement.

By default, related trips are shown based on the trip type assigned to the current trip.

But with WP Travel v7.0.0, you can customize this behavior to display related trips according to your preferred taxonomy such as: destination, keywords, and activities.

To customize the related trips taxonomy, add the following filter code to your child theme’s functions.php file:

 add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) {
    return 'Add your taxonomy Choice'; 
  } );

For detailed information regarding how to create a child theme, please refer to our Knowledgebase.

To show related trips based on destination, use:

 add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) {
    return 'travel_locations'; 
  } );
Related trip according to destination

To show related trips based on keywords, use:

 add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) {
    return 'travel_keywords'; 
  } );

To show related trips based on activities, use:

 add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) {
    return 'activity'; 
  } );

Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to 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.

Get WP Travel Pro