Adding a high-quality featured image to your WP Travel plugin’s trip gallery can indeed make a significant difference in the visual appeal and professionalism of your content. Here’s how you can set the size of the Single Trip’s featured image.
Featured Image size before adding hook

The latest version of the WP Travel plugin (v9.1.0) provides a convenient hook for resolving issues related to low-quality featured images.
To enhance the quality of your trip gallery and thumbnails, you can use the following code snippet. This code should be added to the functions.php file of your child theme or can be implemented via code snippets.
add_filter( 'wp_travel_trip_single_page_thumbnail_background', function(){
return wptravel_get_post_thumbnail_url( get_the_ID(), 'full' );
} );
Note: The site may experience slower loading times due to high-quality images.
By using this code snippet, you can control the size of the featured image displayed on the single trip page. The ‘large’ size is often a good choice, as it provides a good balance between image quality and file size.
Featured Image size after adding hook

The code ensures that the full-size image is used instead of a smaller, compressed version, guaranteeing a high-quality display of the featured image. Using attractive images can result in higher engagement and better click-through rates for your trip content
By following the above simple instructions you can now set the size of Single Trip’s featured image.
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.




