Skip to content

[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 ​

ParameterRequiredDefaultDescription
latYes—Latitude coordinate
lngYes—Longitude coordinate
typeNostreetstreet, map, or streetmap (Pro)
zoomNo10Zoom level (1–20)
widthNo100%CSS width value
heightNo450pxCSS height value
infoNo(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] ​

ScenarioBest 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]

Try Pro free for 7 days

All features unlocked. Cancel anytime.

Start free trial

A WordPress plugin by PAGUP