Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Created November 27, 2017 09:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Show Current Post Marker only on the Google Maps
add_filter('wpgmp_show_place','wpgmp_show_place',1,3 );
function wpgmp_show_place($show,$place,$map) {
global $post;
if($place['id'] != $post->ID) {
$show = FALSE;
}
return $show;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment