WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields - Location Field add-on
Just Lat and Long, not address (1 post)

  1. burchwords
    Member
    Posted 1 month ago #

    I used this code to render the map on my wordpress post:

    <?php if(get_field('googlemap'))
    	{
    		?>
            <iframe width="400" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo the_field('googlemap'); ?>;t=m&z=10&iwloc=A&output=embed&iwloc=near"></iframe>
            <?php
    	}
    	?>

    I just want the map to render with the lat and longitude. Is this possible with the code above?

    https://wordpress.org/plugins/advanced-custom-fields-location-field-add-on/

Reply

You must log in to post.

About this Plugin

About this Topic