Last active
December 28, 2015 00:09
-
-
Save kadavre/7411363 to your computer and use it in GitHub Desktop.
Once you copy and paste the above code to your function.php, you will need to copy the short code below into the exact place where you want Google Maps to be displayed. [googlemap width="200" height="200" src="[url]"]
This file contains 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
//Google Maps Shortcode | |
function fn_googleMaps($atts, $content = null) { | |
extract (shortcode_atts (array ( | |
"width" => '640', | |
"height" => '480', | |
"src" => '' | |
), $atts)); | |
return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'"></iframe>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment