MapMe.com Shortcode
Simple shortcode to embed maps from MapMe.com
// Add Shortcode function mapme_shortcode( $atts ) { // Attributes $atts = shortcode_atts( array( 'id' => '', 'width' => '637', 'height' => '800', ), $atts, 'mapme' ); // Code return "<iframe src='https://mapme.com/" . $atts['id'] . "/embedded' width='" . $atts['width'] . "' height='" . $atts['height'] . "' marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 border=0 scrolling='no'></iframe>" } add_shortcode( 'mapme', 'mapme_shortcode' );