/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Google Maps Shortcode function fn_googleMaps($atts, $content = null) { "width" => '640', "height" => '480', "src" => '' ), $atts)); return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'&output=embed"></iframe>'; } add_shortcode("googlemap", "fn_googleMaps"); [googlemap width="200" height="200" src="[url]"]
URL: http://digwp.com/2010/01/google-maps-shortcode/
Comments
