Search Layout Shortcodes and Attributes

You must have the Experience Add-on   to change the Search Layout appearance, and along with other add-ons,  also allow you to to use the shortcode on  SLP WP page.

These  shortcodes only apply to the Search Layout admin setting when you have the appropriate  Add-on installed and activated.

slp_search_element

This shortcode provides a simple mechanism to place standard search form elements on a custom search form layout, including the wrapping divs and classes around labels and input fields.

button Attribute

Places a search form button on the search form.

submit – place the submit button on the form
Example:

[code language=”html”]
<span class=”search_header”>LOCATE Places Near You</span>;
[[slp_search_element input_with_label=”address”]]
[[slp_search_element dropdown_with_label=”radius”]]
[[slp_search_element button=”submit”]]
[/code]

dropdown_with_label Attribute

This is used to create drop down menus on the search with a preceding label. The following values are accepted:

category – place the category drop down on the form, this works in tandem with the “Show Categories on search” setting, it must be set to on for this entry field to appear on the search form.
city– place the city drop down on the form. This works in tandem with the Show City Selector setting (part of the Experience add-on or Enhanced Search legacy add-on) ; which must be on for the drop down to appear.
country– place the country drop down on the form. This works in tandem with the Show Country Selector setting; which must be on for the drop down to appear.
radius – place the radius drop down on the form.
state – place the state drop down on the form. This works in tandem with the Show State Selector setting; note this checkbox  must be marked as on for the drop down to appear.
tag – place the  tag drop down on the form, this works in tandem with the “Tag Input”, “Tags Label”, and Pre-selected Tag Selections settings.  (Must have Power add-on)

input_with_label Attribute

This is used to create search inputs with a preceding label. The following values are accepted:

address  – place the address search field on the form
name   – place the name entry box on the form, this works in tandem with the “Show Search By Name” setting, it must be checked for this entry field to appear on the search form.

selector_with_label Attribute

This is used to create various input selection types on the search with a preceding label. The following values are accepted:

tag –

place the  tag text input or drop down menu on the form depending what input style is selected on the admin panel settings. Works in tandem with the “Tag Input”, “Tags Label”, and Pre-selected Tag Selections settings with the  Power add-on