PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Geo location

  1. Not sure how to word this but, I would like to have a plugin or added feature to gravity forms which would let me add a location to posts exactly like wp-geo does. I think that this would be a very useful feature to many people.

    Posted 12 years ago on Monday February 20, 2012 | Permalink
  2. pjeaje
    Member

    I have done something similar to this simply by using a GF custom field and the embeded googlemaps code...

    <?php if( get_post_meta($post->ID, "address1", true) ): ?>
    			<p><iframe width="480" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?q=<?php echo get_post_meta($post->ID, "address1", $single = true); ?>&hl=en&hnear=<?php echo get_post_meta($post->ID, "address1", $single = true); ?>&t=m&ie=UTF8&hq=&z=14&output=embed&iwloc=near"></iframe></p>
    			<?php else: ?>
    			<?php endif; ?>
    Posted 12 years ago on Wednesday February 22, 2012 | Permalink
  3. pjeaje
    Member

    I just put that into my single/index.php template (inside the loop)

    Posted 12 years ago on Wednesday February 22, 2012 | Permalink