/ Published in: PHP
Shortcode: [googlemap width="200" height="200" src="[url]"]
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// function 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.'"></iframe>'; } add_shortcode("googlemap", "fn_googleMaps");