/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- Put in functions.php file --> //Google Maps Shortcode function fn_googleMaps($atts, $content = null) { extract(shortcode_atts(array( "width" => '640', "height" => '480', "src" => '' ), $atts)); } add_shortcode("googlemap", "fn_googleMaps"); <!-- Usage inside Post/Page: --> [googlemap width="200" height="200" src="[url]"]