Home Forums Plugin Support WP User Frontend Pro Automatic google map

This topic is: resolved

This topic contains 2 replies, has 3 voices, and was last updated by  Sk 4 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #23539

    Post count: 1

    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?



    Post count: 12

    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>


    Post count: 371

    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 3 posts - 1 through 3 (of 3 total)

The topic ‘Automatic google map’ is closed to new replies.