FacetWP – Listify map fix (map pinpoints disappearing)

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

// Add to your (child) theme’s functions.php
function fwp_auto_refresh() {
?>
<script>
(function($) {
$(function() {
setTimeout(function() {
FWP.refresh();
$(window).trigger( ‘resize’ );
}, 250 );
});
})(jQuery);
</script>
<?php
}
add_action( ‘wp_footer’, ‘fwp_auto_refresh’, 100 );

{{/gist}}