Shortcode: [wpsight_listings_search]

The listings search shortcode is another handy tool to easily place the listings search form anywhere you like. E.g. you can place it right above the [wpsight_listings] shortcode (like we did in the demo) or in a sidebar widget area.

Usage

[wpsight_listings_search]

Parameters

id
Unique HTML ID of the form wrap for advanced styling for example. Is empty by default.

class
CSS class of the form wrap. Defaults to wpsight-listings-search.

orientation
Orientation of the search form. Defaults to horizontal. Can be vertical (e.g. for sidebars).

action
The form action parameter. Is empty by default which will redirect the form to the same page.

advanced
Whether or not to display the advanced search options. Will only apply when WPCasa Advanced Search add-on is active. Defaults to true.

reset
Whether or not to display the form reset button. Defaults to true.

before
Display some short content (e.g. a special note) right before the shortcode output. Is empty by default.

after
Display some short content (e.g. a special note) right after the shortcode output. Is empty by default.

wrap
HTML tag of the container element of the shortcode. Defaults to div.

Example

[wpsight_listings_search id="supersearch" orientation="vertical" reset="false"]

Source File

/includes/shortcodes/class-wpsight-shortcode-listings-search.php

Was this article helpful? Yes · No