1. Home
  2. Docs
  3. Overview
  4. Getting Started
  5. Google Maps Shortcode

Google Maps Shortcode

Google Maps Shortcode Documentation

Overview

The [fus_google_map] shortcode displays a Google Map using location data stored in post meta.

Usage

[fus_google_map meta_name="your_meta_field_name"]

Parameters

ParameterDefaultDescription
meta_nameMeta field name containing location data
post_idcurrent postPost ID to fetch meta from
height‘400px’Map height
width‘100%’Map width
zoom15Map zoom level (1-20)
marker_titleaddressCustom marker hover text
info_window‘true’Show/hide click popup

Example Location Data Format

{
  "geometry": {
    "location": {
      "lat": 55.60661289999999,
      "lng": 37.5917354
    }
  },
  "formatted_address": "Sample Address"
}

Examples

Basic usage:

[fus_google_map meta_name="google_map-1737818243969"]

Custom configuration:

[fus_google_map 
  meta_name="office_location"
  height="500px"
  zoom="12"
  marker_title="Head Office"
  info_window="false"
]

Specific post:

[fus_google_map meta_name="google_map-1737818243969" post_id="123"]

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *