[listing_map] Shortcode

The Listing Map feature allows you to output a map on your pages and posts using a simple Shortcode. There are a variety of options available with each Shortcode in Easy Property Listings.

[listing_map]

You can output a map like this:

[listing_map q="1 Infinite Loop, Cupertino]

Usage

There are several options that may be specified using this syntax:

[listing_map option1="value1" option2="value2"]

You can also print a map in a template like so:

<?php echo do_shortcode('[listing_map q="1 Infinite Loop, Cupertino"]'); ?>

All Options

width
height
zoom
q
cord
suburb_mode

Options

The following options are accepted:

width

specify the map width. Default is 100%. 200px or 20% is also usable here.

[listing_map q="Sorrento WA 6020" width="200px"]
height

specify the map height. Default is 350. (px is assumed and not required for height)

[listing_map q="Sorrento WA 6020" height="200"]
zoom

specify the map zoom from 1-20. Default is 17.

[listing_map q="Sorrento WA 6020" zoom="6"]
q

specify the address query. Either q or the cord options are required.

[listing_map q="Sorrento WA 6020"]
cord

specify the latitude and longitude of the marker pin:

[listing_map cord="-31.9505,115.8605"]
suburb_mode

used with automatic output. Default 0.

[listing_map suburb_mode="1"]