Created
June 20, 2017 04:41
-
-
Save wpflippercode/b2a88cdfd88b7332112e2f650f86439b to your computer and use it in GitHub Desktop.
Show Single Post's Location on the Map on single post page.
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
<?php | |
$CURRENTPOST_LAT = get_post_meta(get_the_ID(),'_wpgmp_metabox_latitude',true); | |
$CURRENTPOST_LON = get_post_meta(get_the_ID(),'_wpgmp_metabox_longitude',true); | |
echo do_shortcode("[display_map marker1='$CURRENTPOST_LAT | $CURRENTPOST_LON | hello world | Bla Bla | category']"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Paste above code in your single.php file template.