Since version 4.8.20, the store locator has a new attribute that can display a single store data via the shortcode attribute, such as you can display the address or title of any store at some point on the page, through the following shortcode attribute.
[ASL_STORE sl-store="6" field="address"]
The above shortcode will only render the address of the store having the store ID 6.
[ASL_STORE sl-store="7" field="title"]
The above shortcode will only render the title of the store having the store ID 7.
[ASL_STORE field="title"]
You don’t need to provide the sl-store attribute in the shortcode if the slug is on the URL of the page.
Store Detail Map Only #
To render a map only of the store detail page, specify the store map in the field attribute.
[ASL_STORE field="map"]
Similarly, you can display any default or custom field as well.
| Field Name | Field Description |
| id | ID of the store |
| title | Name of the store |
| Email of the store | |
| phone | Phone number of the store |
| address | Full address of the store |
| city | City name of the store |
| state | State of the store |
| country | Country name of the store |
| open_hours | Opening hours of the store |
| lat | Latitude value of the store |
| lng | Longitude value of the store |
| map | Render the map of the store detail |
Any custom field that is created through the Custom Fields can also be displayed similarly.
