Return to Snippet

Revision: 23111
at January 30, 2010 13:36 by maryann


Initial Code
// function
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>';
}
add_shortcode("googlemap", "fn_googleMaps");

Initial URL


Initial Description
Shortcode: [googlemap width="200" height="200" src="[url]"]

Initial Title
Google Maps Shortcode

Initial Tags
google, wordpress

Initial Language
PHP