Home › Forums › Front-end Issues › Displaying A Google Map On Front-End › Reply To: Displaying A Google Map On Front-End
Hi @mpridham
The documentation for the google maps field gives you everything you need to get it working.. You can basically copy the entire example and just switch out the field name.
http://www.advancedcustomfields.com/resources/google-map/
All the JS goes in your themes script.js file (or similar) and the PHP/HTML in the template file you want the map to be displayed in. It would need to be inside the loop of the page where the field is applied in admin just like any other ACF field (Or set the second parameter which is the post ID).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.