[rep_listings]

You can use our Listings Shortcode to display listings from your Malcolm account directly on any page or post.


Product


Shortcode Attributes

There are a number of shortcode attributes available which you can use to customize the output.

GENERAL LAYOUT

  1. display – Defines the display between Grid, and Carousel view.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Display.
    • Options: grid, carousel, tab.
  2. layout – Controls the layout of each agency on the result.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Layout.
    • Options: From 1 to 5. Specify one only.
      • 1 – Image above content
      • 2 – Image left content
      • 3 – Image right content
      • 4 – Image overlay content
      • 5 – Content only
  3. columns – Defines how many agencies are displayed per row. Use in conjunction with layout 1, 4, and 5. This attribute is ignored on layout 2 and 3.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Columns.
    • Options: From 1 to 5. Specify one only.
  4. max_posts – The maximum number of agencies to display.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Max Posts.
    • Options: Integer values.
  5. filter_popup – Specifies whether to display filter options in a popup.
    • Default: 0.
    • Options: 1 or 0.
  6. modal_only – Specifies whether to use modal display for listings.
    • Default: 0.
    • Options: 1 or 0.
  7. include_labels – Specifies whether to include labels in the display.
    • Default: 1.
    • Options: 1 or 0.
  8. responsive – Specifies responsiveness options for the shortcode.

GRID LAYOUT

  1. posts_per_page – Toggles pagination on. Use in conjunction with max_posts.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Posts Per Page.
    • Options: Integer values.

CAROUSEL LAYOUT

  1. autoplay – Enable or disable carousel autoplay.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Autoplay.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  2. infinite_carousel – Enable or disable infinite carousel, allowing the carousel to slide endlessly.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Infinite Carousel.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.

SECTION

  1. header_title – Displays section title on the section header above the section body.
  2. header_sub_title – Displays section sub title on the section header above the section body.
  3. section_background_image – Adds a background image to the HTML wrapper for the feed. Use image URL.
  4. section_font_color – Defines the font color of section header and section footer.
  5. section_width – Defines the width of the feed.
    • Default: default (which is a max width of 1140px).
    • Options: default, small, medium, large or full (specify one only).
  6. classes – Adds an HTML wrapper class so you can modify the specific output with custom CSS.

FILTER

  1. archive – If set, the shortcode will allow filtering the results based on the user search.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  2. search_filter – Display search filter form to search through the agencies. Setting this on will set archive attribute to on regardless of the value set on that attribute.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  3. agency_id – Filters listings by agency ID.
  4. agency_lid – Filters listings by agency LID.
  5. agency_post_id – Filters listings by agency post ID.
  6. agent_id – Filters listings by agent ID.
  7. categories – Set the post category.
  8. exclude_categories – An array of excluded categories.
  9. featured – Set as featured.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  10. search_location – Filters listings by location.
  11. search_categories – Filters listings by search categories.
    • Options: {listing_category}-{listing_status}. Use commas , to separate values.
      • listing_category: residential, commercial, business, land, rural, holiday, livestock, clearing.
      • listing_status: sale, lease, sold, leased, rental.
  12. tags – Set the post tags.
  13. orderby – Specifies the order in which listings are displayed.
    • Default: The default value is based on the selected value under Malcolm > Settings > Listings > General > Order By.
    • Options: date, menu_order, rand. Specify one only.
  14. order – Specifies the ordering direction of listings.
    • Default: The default value is based on the selected value under Malcolm > Settings > Listings > General > Order.
    • Options: asc, desc. Specify one only.
  15. property_types – Filters listings by property types.
  16. min_price – Specifies listing minimum price.
  17. max_price – Specifies listing maximum price

CONTENT

  1. content_to_display – Specifies what content details to display for listings.
    • Default: The default value is based on the selected value under Malcolm > Settings > Listings > Display > Featured Details.
    • Options: address, status, price, property_attributes, agency, agent, next_listing_event, state_date, suburn. Use commas , to separate values.

Example Usage

[rep_listings search_categories="residential-sale, commercial-rental, all-sold" search_filter="on" filter_popup="on"]
Example:
This example displays real estate listings that match the specified categories and statuses (residential-sale, commercial-rental, all-sold), adds a search and filter form that allows users to search for properties based on various parameters, filters are displayed in a popup.
Featured Listings: Agencies can be filtered to only show featured listings by using the featured attribute.
Pagination: Pagination is added automatically on grid display if there are more results than can be displayed at once.
Multi-Column or Archive Layout: The shortcode supports multi-column or archive layouts, if archive is set to on. The layout depends on the selected value on Malcolm > Settings > Listings > Archive Page > Archive Page Layout.