The Store Page [storepage] Shortcode

The [storepage] shortcode is used by the Pages and Power add ons to render live location data on a location (store) page.     The template is set under the Pages / Settings tab in the Initial Page Features group via the Page Template setting.

The [storepage] Shortcode

By default the [storepage] shortcode does not output any content.   You need to use one of the following attributes to generate location-specific output.

The Field Attribute

The field attribute is used to output location data fields from the current active location linked to the page.   The field names should be the field slug.  They slug is not case sensitive.    By default a slug is the field name in lowercase with no spaces.

This will also set the field name used for some of the other attributes.   Thus is is important to list this first if using some attributes such as the “type” attribute.

[storepage field=store] will output the name of the location.
Continue reading “The Store Page [storepage] Shortcode”

Generating Store Pages

With the Power add on you can easily create data-driven WordPress pages for each location in your Store Locator Plus locations table.   The layout that builds the initial pages can be modified and pages created, or re-created, en- masse.   Once the initial Store Pages have been created they can be modified on a per-location basis.

Creating Location Pages

Before creating the per-location pages you will want to check the default Pages settings.  First you must click on Enable PAGES under the General/Server tab in SLP.  Next Click the Pages submenu under the Store Locator Plus menu in your WordPress admin sidebar.
Continue reading “Generating Store Pages”