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
    Posts
  • #23539

    Nir
    Member
    Post count: 1

    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.

    #23546

    pjeaje
    Member
    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>

    #23599

    Sk
    Moderator
    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.