shortcode and embedding a map

Homepage Forums WP Travel shortcode and embedding a map

This topic contains 14 replies, has 3 voices, and was last updated by  Support Team 1 year, 1 month ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #4117

    lukazj
    Participant

    Embedding a map with html doesn’t work, and using the api key method doesn’t allow me to use a custom map (with markers and what not). Is there a way to embed my own map?

    For that matter, shortcode doesn’t seem to work in any of the wp travel sections (location pages as well) is this a bug?

    Thanks

    #4138

    Support Team
    Keymaster

    Hello @lukazj,

    Actually, it is not the bug of the plugin.

    If you want to embed your own map then you can embed your HTML code in Text field of the description section of the individual trip.

    Screenshot:
    https://image.prntscr.com/image/fc5qBBRiTX6WrCPfCuqgjQ.png

    Hope this helps.

    Best Regards!!

    #4169

    lukazj
    Participant

    Thank you kindly.

    This is what I did, and while the map shows up in the admin dashboard/ editing window, when browsing the site it does not show.

    #4198

    Support Team
    Keymaster

    Hello @lukazj,

    When we tested the issue by embedding the map, the map does not show at the front end.

    So this issue is noted as the known issue and we are working on this.

    We will soon release the update fixing the issue.

    Hoping for the co-operation.

    Best Regards!!

    #4231

    lukazj
    Participant

    thanks for your support!

    #4232

    Support Team
    Keymaster

    Hello @lukazj,

    Glad we could help you.

    As for the issue, we will resolve it and let you know.

    Best Regards!!

    #4550

    lukazj
    Participant

    any progress on this bug?

    #4580

    Support Team
    Keymaster

    Hello @lukazj,

    We have already fixed the issue regarding the map embed in the overview sections in the latest version of WP Travel Plugin.

    Please update the WP Travel Plugin to the latest available version for the fix to the issue.

    If you have any issues/ queries further regarding the plugin. Please feel free to post in your queries here.

    Best Regards!!

    #4644

    lukazj
    Participant

    Indeed! thank you

    I noticed that it works fine in the overview tab, but in another tab (specifically trip includes/excludes tabs) it seems to not load correctly. The exact same embed code loads the map correct in the overview tab, but it doesn’t zoom in correctly on the other tab.

    I wonder if you can reproduce that problem?

    #4657

    Support Team
    Keymaster

    Hello @lukazj,

    While we have tested the google maps embed code in the overview, the trip includes and excludes tabs, the rendering of maps was found to be identical on our side.

    If you are having trouble with the embed, please provide us the URL of the page that you are having trouble with so that we can look into it further.

    Also, if you are using any other google maps plugins on your website, please check by deactivating them and see if it resolves the issue.

    Best Regards !!

    #7640

    dahollings
    Participant

    Hello,

    Do you know if this problem is resolved in the latest version of WP Travel? I seem to still be having issues with embedded maps loading properly in the overview tab (or other tabs for that matter). The maps load just fine in normal post types. In this case it is a map and GPX track combination but the same thing happens with normal embeds of google maps. Below are a few screenshots to show you what is happening. It seems to possibly be some sort of jquery error or conflict. I am not very familiar with jquery though so this may not actually be the issue.

    Working in a normal post: [IMG]http://i68.tinypic.com/3308qyu.png[/IMG]
    Not working in overview tab: [IMG]http://i68.tinypic.com/vmuno5.png[/IMG]

    The plugin is WP GPX Maps and the shortcode in this case was: [sgpx gpx=”/wp-content/uploads/gpx/Sørvagsvatn-180429.gpx”]

    #7642

    dahollings
    Participant

    After a bit more searching it appears that this may be a separate but related issue. The shortcode seems to work OK, however the javascript that the plugin attempts to use gets pulled into the post with <p> tags added on every line. This displays the script rather than the expected content obviously.

    Again, this only occurs in the trip tabs and not in normal posts. Is there a way to prevent these <p> tags from being added in tabs?

    Thanks,
    -Dave

    #7662

    Support Team
    Keymaster

    Hello @dahollings,

    The issue related to the tag will be resolved in the coming update.

    As for now please go to wp-travel > inc > template-functions.php line no:848 and replace the code from line no 848 to line no 852 with the code given below:

    default : ?>
    <div id="<?php echo esc_attr( $tab_key ); ?>" class="tab-list-content">
    <?php echo do_shortcode( wp_kses_post( $tab_info['content'], wp_travel_allowed_html( array( 'a', 'iframe' ) ) ) ) ; ?>
    </div>
    <?php break; ?>

    Hope this helps.

    Also please post your queries creating your own ticket so that it would be easy for us to follow up the replies.

    Regards!

    #7716

    dahollings
    Participant

    Hello,

    Thank you for the response! I did copy that code over and attempted to display the GPX track/map again but had the same issue unfortunately. I’ll wait until the next update and see if that fixes it.

    Thanks,
    -Dave

    #7738

    Support Team
    Keymaster

    Hello @dahollings,

    When we update the plugin fixing the issue for you then it will effect for other users who just wants to paste the text in the tab so the issues precise to your case only.

    So we have come up with the solution for you. For this please add below given code in your child theme functions.php file.

    add_filter( 'wp_travel_trip_tabs_output_raw', '__return_true' );

    Hope this helps.

    Regards!!

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.