Support

Account

Home Forums ACF PRO How to display Google map on front end?

Solved

How to display Google map on front end?

  • Is there a resource somewhere that explains how to use the Google map option with more details? I’ve read the documentation for it located here: http://www.advancedcustomfields.com/resources/google-map/ but I need a little more detailed instructions.

    I have the backend option setup for selecting the location and marker but I’m lost when it comes to displaying the map on the front end in my template. In the documentation it states there is required CSS and Javascript to be available to the page template. How do I include the required CSS & JS for the page template?

    Paul

  • you need to add the css&js from link you have from documentation
    you need the the full code from : Required CSS & JS
    just customize it when you know what you do

    and full code from : Render a single maker onto a map
    just change location from the code get_field('location'); to the field-name you use

    of course you can add css part to template-css and outsource the js part into a file and use wp_register_script and wp_enqueue_script to include it.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to display Google map on front end?’ is closed to new replies.