[wpgsv_map] shortcode ​
The [wpgsv_map] shortcode embeds a map directly without creating a WPGSV post. All options are passed as shortcode attributes.
Syntax ​
[wpgsv_map lat="LATITUDE" lng="LONGITUDE" type="TYPE" zoom="ZOOM" width="WIDTH" height="HEIGHT" info="TEXT"]Parameters ​
| Parameter | Required | Default | Description |
|---|---|---|---|
lat | Yes | — | Latitude coordinate |
lng | Yes | — | Longitude coordinate |
type | No | street | street, map, or streetmap (Pro) |
zoom | No | 10 | Zoom level (1–20) |
width | No | 100% | CSS width value |
height | No | 450px | CSS height value |
info | No | (empty) | Info box text content |
Examples ​
Street View ​
[wpgsv_map lat="48.8584" lng="2.2945" type="street"]Map with info box ​
[wpgsv_map lat="40.7128" lng="-74.0060" type="map" zoom="14" info="New York City"]Full-width responsive map ​
[wpgsv_map lat="51.5074" lng="-0.1278" type="map" zoom="12" width="100%" height="500px"]When to use [wpgsv_map] vs [wpgsv] ​
| Scenario | Best choice |
|---|---|
| Quick, one-off map embed | [wpgsv_map] |
| Map reused on multiple pages | [wpgsv] |
| Need custom markers, styles, layers | [wpgsv] |
| Programmatic embeds (loops, templates) | [wpgsv_map] |
| Full admin configuration UI | [wpgsv] |