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

  1. burchwords
    Posted 2 years 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>

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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields - Location Field add-on
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic