1. Home
  2. Docs
  3. Developer Guide
  4. Shortcodes
  5. [property_search_form]

[property_search_form]

Display a property search form anywhere on the website using the following:

[property_search_form]

By default this will output a property search form with an id of 'shortcode' and a class of ‘property-search-form-shortcode‘.

To edit the fields of the form output using our free Template Assistant add on you can either add a new form with an ID of 'shortcode', or if you've already configured the default form you could use them same fields by passing in an id of 'default' to this shortcode (see attributes below).

Attributes

Attribute: id

Description: The id will determine which fields are shown if using a filter or our free Template Assistant add on to edit the fields. It will also be included in the class name added to the form.

Default: shortcode

Example: [property_search_form id="default"]


Attribute: default_department

Description: Use if wishing to modify the default department from the primary. Accepted values are: residential-sales, residential-lettings, commercial

Default: primary department selected under 'Property Hive > Settings > General'

Example: [property_search_form default_department="residential-lettings"]

Was this article helpful to you? No Yes

How can we help?