// Map

This add-on generates a map alongside FacetWP results.


This add-on expects that each result is properly geocoded. You can choose either:

  • A single custom field with a comma-separated latitude, longitude
  • A single custom field with a comma-separated longitude, latitude
  • Two separate custom fields

Map Design

We’ve included an interface to select from thousands of different map designs. Simply choose the desired map design to activate it.


The Marker tab controls the content that appears when a map marker (pinpoint) is clicked. This input box accepts both HTML and PHP.

Displaying the map

[facetwp map="true"]

Customizing the marker pins

add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
    $args['icon'] = 'https://URL/TO/marker.png';
    return $args;
}, 10, 2 );

For more flexibility, you could alternatively use arrays to mimic Google’s JS objects:

add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
    $args['icon'] = array(
        'url' => 'https://URL/TO/YOUR/marker.png',
        'scaledSize' => array(
            'width' => 16,
            'height' => 16
    return $args;
}, 10, 2 );



  • Fix: issue preventing proper preloading w/ FacetWP 3.0.4+


  • Fix: issue with ACF longitude


  • Fix: using separate ACF lat / long fields
  • Fix: API key issue when using Proximity facet
  • New: max zoom setting
  • Fix: don’t show non-geotagged results
  • Fix: sanitize loading animation code
  • New: ACF map field support
  • Fix: stripped brackets to support the Address Geocoder plugin
  • Updated to markerclusterer.js 1.0.1 
  • Initial release


  • Version: 1.0.9
  • Updated: Sep 29, 2017

Get Started

Download now