The [slp_search_element] shortcode is only processed within the Search Layout setting. It is used to display user input elements on the search form.
Attributes are the keywords that appear after the opening [slp_search_element and before the closing ].
Default attributes include:
Output a form button. <slug> should be an input supported by the base plugin or an add on such as:
Output the Find Locations button.
Output a dropdown selector with a preceding label for the specified input. <slug> should be an input supported by the base plugin or an add on such as:
Output a dropdown of radius selections based on the Experience / Search / Radii Options setting.
Outputs the specified value. Used by some add ons to add a specific [slp_search_element] output.
Output a input selector with a preceding label for the specified input. <slug> should be an input supported by the base plugin or an add on such as:
Output a the address/zip-code input box.
Tech Geek Stuff
Processed by the SLP_UI class via add_shortcode in create string_SearchForm() which calls crease_SearchElement().
Filter shortcode_slp_searchelement is used to manipulate attributes. Many add ons use this to render specific output using attribute ‘hard_coded_value’ => ‘xyz’ to output a specific value.
With the Experience Add-on you have multiple search tool options to display on the front page when a site visitor lands on your locator page. Search by Name is a checkbox that is found under the Store Locator Plus “Experience/Search” menu on your admin ui.
EXPERIENCE additional features under Search
The Power Add On includes basic search and results reports. When Power is installed you will see a new Report tab on the Store Locator Plus admin pages. This tab is where you can view and generate locator search reports. See what visitors are searching for and what results are being returned.
[slplus] is the primary shortcode used within WordPress sites to display the Store Locator Plus map and location search interface.
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: WordPress Plugin API update 4.2.3 effects shortcodes with filtered styles which will not be recognized when stored between quotes.
Premier subscribers will see the following features under the Store Locator Plus Experience / Search Panel.
Premier 4.5 Search Settings
Show Address Guess
If checked, replace the address the customer typed into the address box with what Google thought they meant. This feature is very useful when they are browsing incognito or the location sensor is not activated.
Country Influences Guess
When checked , uses the selected Country Map Domain to influence how Google guesses what the user meant when entering a search address.
Boundaries Influence Guess
Uses a search boundary to influence how Google guesses what the user meant when entering a search address.
- Locations is a rectangle that surrounds all of your locations.
- Defined Boundary is a rectangle that you define with a map that will appear below.
- The default is none, using standard Google address lookup rules.
These features are very useful, especially when you ahve a mix of some non standard Zip codes or addresses that otherwise might be hard to find with the basic google query.
The Experience provides a “search by city”, “search by state”, and “search by country” feature. This search form element, when enabled, will build a drop down list based on the locations in your database. This is meant to provide a hint to the user where your locations are.
The legacy system was a simple “address input” feature. When a user selected an entry from the drop down list it types the text into the address box. When the user clicks the search button it looks for locations closest to that location based on your other search form settings. If your default radius is 100 miles and the user selects the state of Texas, this system will search for all locations within 100 miles of Google’s estimated “center of Texas”.