Map point image

Closed
CityTours - Hotel & Tour Booking WordPress Theme CityTours - Hotel & Tour Booking WordPress Theme April 26, 2019
Login to reply
Kelly R Support Agent
5 years ago
Resolved.
Kelly R Support Agent
5 years ago

Hi,

Please find following code in archive page.

$description = str_replace( "'", "\'", wp_trim_words( strip_shortcodes(get_post_field("post_content", $tour_obj['tour_id'])), 20, '...' ) );

and replace with following.

$description = get_post_meta( $tour_obj['tour_id'], '_tour_brief', true );

Regards, C-Themes

Ben Kamara
5 years ago

Thank you very much for the featured image fix.

Also is it possible to show the Tour Brief on this map instead? using the text from description is not precise enough

Thank you

Kelly R Support Agent
5 years ago

Hi,

It shows header image in edit tour page. http://prntscr.com/niit09

If you want to change it, please edit /archive-tour.php  and /single-tour.php file.

For example, in archive-tour.php file, you can find following code.

map_image_url: '<?php echo ct_get_header_image_src( $tour_obj['tour_id'], "ct-map-thumb" ); ?>',

And you edit this code to show featured image.

map_image_url: '<?php echo get_the_post_thumbnail_url( $tour_obj['tour_id'], "ct-map-thumb" ); ?>',

Regards, C-Themes

Ben Kamara
5 years ago

The image which displays on the map is the Media and not the  Featured Image. I would like the feature image to be shown on the map popup. Which file should I edit to change this? Thanks