function shortcode_wpgeo($atts, $content = null) { global $wpgeo; $allowed_atts = array('rss' => null, 'kml' => null); extract(shortcode_atts($allowed_atts, $atts)); if ($kml != null) { $rss = $kml; } if ($rss != null) { $map = new WPGeo_Map('shortcode'); $map->add_feed($rss); $wpgeo->maps->add_map($map); $wp_geo_options = get_option('wp_geo_options'); return $map->get_map_html(array('classes' => array('wpgeo', 'wpgeo-rss'), 'content' => $rss)); } return ''; }