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.
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.
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; ?>
I just put that into my single/index.php template (inside the loop)