Title: Display Visitor Maps shortcode
Last modified: August 21, 2016

---

# Display Visitor Maps shortcode

 *  [jimlongo](https://wordpress.org/support/users/jimlongo/)
 * (@jimlongo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/display-visitor-maps-shortcode/)
 * Hi Mike, I love this plugin, and what would be totally awesome would be the ability
   to display a Visitor Map – World (large) for the last 7 or 30 days on a page.
 * [http://wordpress.org/plugins/visitor-maps/](http://wordpress.org/plugins/visitor-maps/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jimlongo](https://wordpress.org/support/users/jimlongo/)
 * (@jimlongo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/display-visitor-maps-shortcode/#post-3968668)
 * Okay, I see you’ve thought of that, at least it looks like that’s the intention
   in settings.
    _Enable visitor map on Visitor Map shortcode page._
 * However all I get are the pins, no map, and the pins are located at the top left
   of the page.
 * I’ve tried both versions of the ‘missing map background fix’, it doesn’t change.
 * Thanks.
 *  Thread Starter [jimlongo](https://wordpress.org/support/users/jimlongo/)
 * (@jimlongo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/display-visitor-maps-shortcode/#post-3968827)
 * here’s the URL [https://www.shareyourmemories.ca/maps/](https://www.shareyourmemories.ca/maps/)
 * If i look at the source I see the map section like this
 *     ```
       <!--
       This link is for your reference, it can be pasted into a browser:
       https://www.shareyourmemories.ca?do_wo_map=1&time=28&units=days&map=4&pin=1&pins=on&text=on&textcolor=000000&textshadow=FFFFFF&textalign=cb&ul_lat=0&ul_lon=0&lr_lat=360&lr_lon=180&offset_x=0&offset_y=0&wp-minify-off=1&type=png
   
       $map_settings = array(
       // html map settings
       // set these settings as needed
       'time'       => ’28′,  // digits of time
       ‘units’      => ‘days’, // minutes, hours, or days (with or without the “s”)
       ‘map’        => ’4′,       // 1,2,3 etc. (you can add more map images in settings)
       ‘pin’        => ’1′,       // 1,2,3 etc. (you can add more pin images in settings)
       ‘pins’       => ‘off’,     // off (off is required for html map)
       ‘text’       => ‘on’,      // on or off
       ‘textcolor’  => ’000000′,  // any hex color code
       ‘textshadow’ => ‘FFFFFF’,  // any hex color code
       ‘textalign’  => ‘cb’,      // ll, ul, lr, ur, c, ct, cb (codes for: lower left, upper left, upper right, center, center top, center bottom)
       ‘ul_lat’     => ’0′,     // default 0 for worldmap
       ‘ul_lon’     => ’0′,     // default 0 for worldmap
       ‘lr_lat’     => ’360′,     // default 360 for worldmap
       ‘lr_lon’     => ’180′,     // default 180 for worldmap
       ‘offset_x’   => ’0′,   // + or – offset for x axis  – moves pins left, + moves pins right
       ‘offset_y’   => ’0′,   // + or – offset for y axis  – moves pins up,   + moves pins down
       ‘type’       => ‘png’,     // jpg or png (map output type)
       );
       echo get_visitor_maps_worldmap($map_settings);
       –>
       ```
   
 * I’m not sure of why everything in _my source_ is converted to html entities (
   it is converted back on this board), but at any rate the last line converts to`-
   >` when it really should be an end comment block `-->`
 *  Thread Starter [jimlongo](https://wordpress.org/support/users/jimlongo/)
 * (@jimlongo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/display-visitor-maps-shortcode/#post-3968830)
 * Can’t see why it won’t print that last comment tag.
    Something to do with the
   array
 * My workaround for now is just to make line 271 an empty string.
 *     ```
       // show world map
       $string = '';
       ```
   
 *  it also works with just removing the array
 *     ```
       $string = '<!--
       This link is for your reference, it can be pasted into a browser:
       '.$image_worldmap_link.'-->';
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display Visitor Maps shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/visitor-maps_dde3bd.svg)
 * [Visitor Maps and Who's Online](https://wordpress.org/plugins/visitor-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visitor-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visitor-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/visitor-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visitor-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visitor-maps/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 1 participant
 * Last reply from: [jimlongo](https://wordpress.org/support/users/jimlongo/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/display-visitor-maps-shortcode/#post-3968830)
 * Status: not resolved