Advanced Custom Fields: Leaflet Field



This plugin adds a Leaflet map field to the Advanced Custom Fields plugin. Use it to display maps with markers, lines and shapes along with your posts and pages.

  • Add multiple markers with popups to the map.
  • Draw polylines, polygons and rectangles.
  • The field stores both your zoom-level and viewport location.
  • Function to render the map in your theme is included in the plugin: , just plug and play!
  • Supports ACF4 and ACF5 (Pro)


A rendering function is provided in the plugin. If you want to use it all you have to do is use the_leaflet_field( 'my_leaflet_field' ); where you want to render the map.

To do

Things I plan to add to the plugin:

  1. Adding images to popups.
  2. Provide a tool for importing GeoJSON-structured data into the field.


If you want the latest development version of this plugin it is available over at my github repository. The github repository will always have the latest code and may occasionally be broken and not work at all.



  1. Upload advanced-custom-fields-leaflet-field to the /wp-content/plugins/ directory
  2. Make sure you have Advanced Custom Fields installed and activated
  3. Activate the plugin through the Plugins menu in WordPress
  4. Add a Leaflet field to a ACF field group and save
  5. The field is now ready for use


This is not a standalone plugin, you need to have Advanced Custom Fields installed and activated for it to work.

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Most Viewed Posts