[wpgsv] shortcode ​
The [wpgsv] shortcode embeds a map configured through the WP Google Street View custom post type.
Syntax ​
[wpgsv id="POST_ID"]Parameters ​
| Parameter | Required | Description |
|---|---|---|
id | Yes | The post ID of the WPGSV map entry |
Finding the post ID ​
When you create or edit a map in WP Google Street View, the shortcode with the correct ID is displayed in the sidebar. You can also find it in the URL when editing: post.php?post=42&action=edit — the ID is 42.
Example ​
[wpgsv id="42"]This renders the map with all settings configured in post #42: map type, coordinates, style, markers, layers, and dimensions.
Where to use it ​
- Pages and posts (Block Editor or Classic Editor)
- Text widgets
- Any theme template using
do_shortcode('[wpgsv id="42"]') - Page builders that support shortcodes (Elementor, Beaver Builder, Divi, etc.)
Updating the map ​
To change the map's appearance or location, edit the WPGSV post. The changes apply everywhere the shortcode is used — no need to update individual pages.