Frontend Shortcode Parameters

You can add the Locatoraid front end to any post or page with the shortcode:

[locatoraid]

There are a number of available shortcode parameters that can be used to configure the front end view. You can always view the actual options when you click the Publish menu in your Locatoraid admin area.

layout

Defines the front end view layout.

Default: "map|list"

  • map
    Displays the map.
  • list
    Displays the list of locations.

You can combine the map and the list together with either | or /. The | options means the map and the list will be placed horizontally side by side, the / option will render them vertically stacked one after one.

[locatoraid layout="map|list"]

[locatoraid layout="list|map"]

[locatoraid layout="map/list"]

[locatoraid layout="map"]

where-*

These parameters lets you filter out the locations that are displayed on this page. Possible options include: country, state, city.

[locatoraid where-state="TX"]

[locatoraid where-country="Canada"]

where-product

Since 3.1.4

This parameter lets you filter out the locations based on the products they offer. You will need to enter the product ID which is shown on the Products page in the Locatoraid admin area.

[locatoraid where-product="2"]

start

Provides a default search string.

Default: ""

[locatoraid start="Wilmington, DE"]

limit

Limits the number of returned search results.

Default: 100

[locatoraid limit="50"]

radius

Since 3.1.4

Makes the system search within the specified radius (in km or miles, depending on your settings). You can supply several options separated by commas. If several options are given, then it first searches within the first option and gives the More Results link to search within the next radius option. If no matches are found within the largest radius, it shows No Results message.

Default: 10, 25, 50, 100, 200, 500

[locatoraid radius="20, 100"]

group

Group the returned search results.

Possible options: country, state, city, zip

[locatoraid group="state"]

sort

Sort the returned search results.

Default: none

Possible options: name, name-reverse.

If no option is given, the results are sorted by distance to the address that was searched for.

[locatoraid sort="name"]

map-style

Since 3.0.7

Define the "style" HTML attribute for the map.

Default: "height: 400px; width: 100%;"

[locatoraid map-style="height: 20em; width: 100%;"]

list-style

Since 3.0.7

Define the "style" HTML attribute for the results list.

Default: "height: 400px; overflow-y: scroll;"

[locatoraid list-style="height: auto;"]

Additional Settings

Our plugin provides a variety of configuration options. Go to Settings to fine tune your system. You can define your address format, CSV delimiter for import and export operations, front view templates, and more options.

Latest update: Version 3.1.4

Order Now

Get the Pro version for a lot more nice features

Order Now