WP Travel plugin provides a feature regarding displaying related trips on a single trip page.

By default, the trips that are assigned to a trip type that is similar to the trip type of the trip that 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 choices 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.

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'; 
  } );
Related trip according to destination

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'; 
  } );

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'; 
  } );

If you liked this article, then subscribing to our YouTube Channel for WordPress video tutorials would be the cherry on top.

You can also find us on FacebookInstagram, Linkedin, TikTok, Pinterest, Reddit, and our dedicated engaging Facebook user community, for you everyone.

Further, if you have any queries, please submit them to our Contact page.

Get WP Travel Pro and start creating your travel and tour booking website within minutes without any hassle of coding.

create your travel site within minutes by wptravel.io ,buy wptravel pro