Beta testing is currently underway for the MySLP SaaS version of the location directories. Since many deployment platforms do not utilize shortcodes, we have developed an alternate method for rendering the directory lists.
Location directories , list of locations or states WITHOUT an interactive map, is possible in the buy-and-own WordPress plugins with the Power add-on.
The [slp_directory] shortcode is used to place a directory listing on a page or post. There are two main modes of operation for the shortcode which is determined but the listing style selected. The list style is determined via the style attribute. The general layout of the Landing Page listings is based on the Results Layout that is set for the base plugin.
The two modes are “list mode” and “landing page” mode. These modes are described below.
[slplus] is the primary shortcode used within WordPress sites to display the Store Locator Plus map and location search interface. Many other attributes can be found within the plugin and add-ons.
A shortcode is a special label inside of square brackets that is used within WordPress pages and posts to display the output from a plugin. You place a shortcode within the text of your page or post and the plugin will “do it’s magic”.
Note: Shortcode attributes WILL NOT WORK if Force Load JavaScript is turned on under Store Locator Plus General Settings. Try turning it off before using attributes. If Store Locator Plus won’t load when you turn Force Load JavaScript off, get a different WordPress Theme that fully implements WordPress code standards.
Note: As of WordPress Plugin API update 4.2.3 effects shortcodes with filtered styles which will not be recognized when stored between quotes.
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.
Attributes
class – augments the tag attribute with the specified CSS class
field – specify which location field to display
hard_coded_value – output the text in the wrapper
map – show a map with the location marker
post – output the WordPress post attributes for the page
The bubble layout setting allows you to change the content and layout of the popup information bubble that appears when someone clicks a map marker or in the results below the map or hover. There are additional functionality such as “Hide Info Bubble” if you have Enterprise Level or Premier subscription
For the PLUG-In do t yourself version of Store Locator Plus you will need the Experience add-on and use shortcodes. These are not generic WordPress shortcodes. For the SLP SaaS customers you will need to have a Professional or Enterprise level Plan to change layouts.
All of the bubble layout shortcodes follow this syntax:
To create a locator page that has a zip/postal code search box, a map of your locations, and the results list put the [slplus] shortcode on a page or post.
Go to Pages in your WordPress admin.
Create a new page.
Name it “Locations”.
Enter [slplus] in the main content area of the page.
Details
First create a new page for your WordPress site where the Store Locator Plus plug-in will reside. Add the shortcode (a special label inside of square brackets that is used within WordPress pages and posts to display the output from a plugin). You place a shortcode within the text of your page or post and the plugin will “do it’s magic”
Locator Shortcode
To display the Store Locator Plus search form, map, and search results using the defaults you have setup via Map Settings in the admin panel, use the following shortcode:
[slplus]
The base plugin will replace the shortcode with a search form, a Google Map, and a results section below the map. Depending on how you have the plugin configured the map and results may start by showing some or all of your locations.
Hint: Do not copy and paste off this page or all you will see is the text. You must type in the shortcode onto your WP page.
Additional Shortcodes can be found under the SLP documentation Shortcodes:SLP