Automatic google map

This topic contains 2 reply and 3 voices, and was last updated by Sk 9 years, 9 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
July 14, 2014 at 7:58 pm 23539
Sk Hi, I have a form which has address input and Google maps input. I want to know if it is possible to get the address input and put it automatically in the Google maps field? If not, is it possible to use the value of the address input and use it later to show the map, without the need of another plugin? Thanks.
July 14, 2014 at 9:54 pm 23546
pjeaje pjeaje

Yes and no. I don’t think you can do it with this plugin but you can do it by simply pasting the address custom field tag (ABCXYZ) into a html google map iframe inside your single.php template like so…

<iframe class="aligncenter" src="http://maps.google.com/maps?q=<?php if( get_post_meta($post->ID, "ABCXYZ", true) ): ?><?php echo get_post_meta($post->ID, "ABCXYZ", true); ?><?php else: ?><?php endif; ?>&z=14&output=embed" width="99%" border="solid 1px #ccc" height="300px;"></iframe>

July 15, 2014 at 3:02 pm 23599
Sk Sk

Hello Nir,

Currently it’s not possible with our plugin. But you can use conditional logic for this. Like you could use radio-field show/hide for google map.
You can try Pjeaje’s solution.

Thank you Pjeaje for being so helpful.

Thank you Nir

Viewing 2 Posts - 1 through 2 (of 2 total)