Revision: 22716
Updated Code
at March 2, 2010 07:32 by gd6d
Updated Code
//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.'&output=embed"></iframe>'; } add_shortcode("googlemap", "fn_googleMaps"); [googlemap width="200" height="200" src="[url]"]
Revision: 22715
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 20, 2010 06:07 by gd6d
Initial Code
//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>'; } add_shortcode("googlemap", "fn_googleMaps"); [googlemap width="200" height="200" src="[url]"]
Initial URL
http://digwp.com/2010/01/google-maps-shortcode/
Initial Description
Initial Title
Google Maps Shortcode
Initial Tags
wordpress
Initial Language
PHP