WordPress.org

Support

Support » Plugins and Hacks » Flexible Map » [Resolved] Loading with relative URL

[Resolved] Loading with relative URL

Viewing 1 replies (of 1 total)
  • Plugin Author webaware

    @webaware

    G’day, if you’re adding the map in code through a template, then yes you can, e.g.

    $kml = get_bloginfo('template_directory').'/maps/'.get_post_meta($post->ID, 'Mapfile', true);
    
    flexmap_show_map(array(
      'src' => $kml,
      'width' => 500,
      'height' => 400,
    ));

    If you’re using the shortcode, then you’ll need to filter ‘flexmap_shortcode_attrs’ to set the ‘src’ attribute that way.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Loading with relative URL’ is closed to new replies.
Skip to toolbar