WP Travel plugin provides the feature regarding displaying related trips on a single trip page. By default, the trips that are assigned to trip type which is similar to the trip type of the trip which is displayed on the single trip page are displayed under the Related Trips section.

Now, with the WP Travel v7.0.0 you can change the related trip according to your taxonomy choice like destination, keywords and activities using a filter code.
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.
i. Show the related trip according to the destination added.
To show related trips according to the destination , please add the following given code in the functions.php file of your child theme.
add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) { return 'travel_locations'; } );
Output:

ii. Show the related trip according to the Keywords added.
To show related trips according to the destination , please add the following given code in the functions.php file of your child theme.
add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) { return 'travel_keywords'; } );
iii. Show the related trip according to the Activities added.
To show related trips according to the destination , please add the following given code in the functions.php file of your child theme.
add_filter( 'wp_travel_related_trip_filter_single_archive_page', function ( $args ) { return 'activity'; } );
Additionally, you can hide related trips on a single trip page.
Further, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Additionally, if you have any queries/confusion then please submit them to our Contact page.
