1. Docs
  2. Developer Guide
  3. Shortcodes
  4. [featured_properties]

[featured_properties]

Output a list of featured properties anywhere on the website using the shortcode:

[featured_properties]

By default this will output 12 recent properties in a random order and uses the content-property-featured.php template.

Attributes

Attribute: per_page

Description: Determines the number of properties returned.

Default: 12

Example: [featured_properties per_page="6"]


Attribute: department

Description: 

Possible Values: (empty), residential-sales, residential-lettings, commercial

Default: (empty)

Example: [featured_properties department="residential-sales"]


Attribute: office_id

Description: 

Default: (empty)

Example: [featured_properties office_id="6"]


Attribute: orderby

Description: 

Default: rand

Example: [featured_properties orderby="meta_value_num"]


Attribute: order

Description: 

Possible Values: desc, asc

Default: desc

Example: [featured_properties order="asc"]


Attribute:meta_key

Description: 

Default: (empty)

Example: [featured_properties meta_key="_price_actual"]

Was this article helpful to you? Yes No