Created
November 27, 2017 09:45
-
-
Save wpflippercode/b02e04871fe823d1b71bb04993cc153e to your computer and use it in GitHub Desktop.
Show Current Post Marker only on the Google Maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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