Output a list of properties anywhere on the website using the shortcode:
[properties]
By default this will output 10 on market properties in price descending order and uses the content-property.php template.
Note: This shortcode is for displaying a select few properties. Do not use this shortcode for the search results page as you will not get functionality such as pagination and ordering. You should be specifying your search results page under 'Property Hive > Settings > General'.
Attributes
Attribute: posts_per_page
Description: Determines the number of properties returned.
Default: 10
Example: [properties posts_per_page="12"]
Attribute: department
Description:
Possible Values: (empty), residential-sales, residential-lettings, commercial
Default: (empty)
Example: [properties department="residential-sales"]
Attribute: minimum_price
Description:
Default: (empty)
Example: [properties minimum_price="250000"]
Attribute: maximum_price
Description:
Default: (empty)
Example: [properties maximum_price="750000"]
Attribute: bedrooms
Description:
Default: (empty)
Example: [properties bedrooms="2"]
Attribute: address_keyword
Description:
Default: (empty)
Example: [properties address_keyword="Lincoln"]
Attribute: radius
Description: Only applicable when Radial Search add on installed
Default: (empty)
Example: [properties address_keyword="Lincoln" radius="10"]
Attribute: availability_id
Description:
Default: (empty)
Example: [properties availability_id="5"]
Attribute: marketing_flag_id
Description:
Default: (empty)
Example: [properties marketing_flag_id="5"]
Attribute: property_type_id
Description:
Default: (empty)
Example: [properties property_type_id="5"]
Attribute: location_id
Description:
Default: (empty)
Example: [properties location_id="5"]
Attribute: office_id
Description:
Default: (empty)
Example: [properties office_id="5"]
Attribute: negotiator_id
Description:
Default: (empty)
Example: [properties negotiator_id="5"]
Attribute: commercial_for_sale
Description:
Default: (empty)
Example: [properties commercial_for_sale="1"]
Attribute: commercial_to_rent
Description:
Default: (empty)
Example: [properties commercial_to_rent="1"]
Attribute: orderby
Description:
Default: meta_value_num
Example: [properties orderby="meta_value_num"]
Attribute: order
Description:
Default: desc
Example: [properties order="asc"]
Attribute: meta_key
Description:
Default: _price_actual
Example: [properties meta_key="_bedrooms"]
Attribute: ids
Description: A comma-delimited list of property post IDs should you wish to show specific properties.
Default: (empty)
Example: [properties ids="312,543,654"]
Attribute: pagination
Description: Whether to show pagination
Default: (empty)
Example: [properties pagination="1"]
Attribute: show_order
Description: Whether to show a dropdown allowing users to filter by price and date
Default: (empty)
Example: [properties show_order="1"]
Attribute: show_result_count
Description: Whether to show the result count (i.e. Showing 1-10 of 99 properties)
Default: (empty)
Example: [properties show_result_count="1"]