Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Created November 27, 2017 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpflippercode/b02e04871fe823d1b71bb04993cc153e to your computer and use it in GitHub Desktop.
Save wpflippercode/b02e04871fe823d1b71bb04993cc153e to your computer and use it in GitHub Desktop.
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