[sr_openhouses]
– Show Open Houses anywhere on your site
The [sr_openhouses]
short-code allows you to show upcoming and historical open houses on any page or post on your website. By default, the short-code will show all upcoming open houses starting today or in the future, or you can add filters to control which open houses are shown.
This short-code shows a list-view to the user, with links to view more details about the open house, MLS listing, and property. See the syntax section below to get started, then try adding search filters!
Syntax
Basic usage:
[sr_openhouses]
With options and filters:
[sr_openhouses cities="Houston; Magnolia" brokers="broker1; broker2"]
Options
The [sr_openhouses]
short-code does not currently take any options outside of the search filters.
Search filters
Filters can be used to control which open houses are shows, how many are visible per page, and other things. You can use multiple filters at the same time, and some filters can take multiple values!
This short-code supports all of our API parameters. Check out the API docs here for a full list of search filters.
Name | Default | Multiple | Description | Example |
vendor | null | false | The RETS vendor to search (required with multi-mls accounts). | vendor="har" |
sort | Modifed, descending | false | Sort the open houses by list date, price , bedrooms, or bathrooms. | sort="-listdate" |
limit | 25 | false | The number of results to show per page (max 500). | limit="500" |
listingId | null | false | Request open houses for a specific MLS # (.listingId ) | listingId="MLS1234" |
startdate | <now> | false | Show open houses starting on this date or later. | startdate="2020-01-01" |
type | Residential; Rental | true | Filter open houses by property type. | type="Condominium; Rental" |
agent | null | true | Filter open houses by agent MLS ID(s). | agent="agent1; agent2" |
brokers | null | true | Filter open houses by broker MLS ID(s). | brokers="office1; office2" |
minprice | null | false | Filter listings by a minimum price. | minprice="500000" |
cities | null | true | Filter listings by a city. | cities="Houston; Chicago" |
Check out the API docs here for more information and examples on using the search parameters.
Example
Raw short-code:
[sr_openhouses startdate="2015-01-01"]
Output:
Thu, Aug 22nd · 3:34am - 7:34am
Status: Active
MLS #: 1625143
City: Tomball
Bedrooms: 1
Full baths: 5
SqFt: 1,648 sqft
Sat, Aug 24th · 10:06pm - 2:06am
Status: Active
MLS #: 43148864
City: Katy
Bedrooms: 1
Full baths: 4
SqFt: 2,840 sqft
Mon, Aug 26th · 3:03am - 7:03am
Status: Active
MLS #: 36749718
City: Houston
Bedrooms: 4
Full baths: 6
SqFt: 1,562 sqft
Tue, Aug 27th · 4:24pm - 8:24pm
Status: Active
MLS #: 89854753
City: Cypress
Bedrooms: 5
Full baths: 3
SqFt: 3,363 sqft
Wed, Aug 28th · 4:21am - 8:21am
Status: Active
MLS #: 61207903
City: Oak Ridge
Bedrooms: 4
Full baths: 6
SqFt: 987 sqft
Wed, Aug 28th · 10:51pm - 2:51am
Status: Pending
MLS #: 28045237
City: Houston
Bedrooms: 3
Full baths: 1
SqFt: 5,607 sqft
Thu, Aug 29th · 3:18am - 7:18am
Status: Pending
MLS #: 29498303
City: The Woodlands
Bedrooms: 2
Full baths: 4
SqFt: 1,535 sqft
Fri, Aug 30th · 3:30am - 7:30am
Status: Pending
MLS #: 93307580
City: The Woodlands
Bedrooms: 6
Full baths: 2
SqFt: 5,515 sqft
Mon, Sep 2nd · 3:30pm - 7:30pm
Status: Active
MLS #: 18684882
City: Cypress
Bedrooms: 1
Full baths: 5
SqFt: 3,363 sqft
Wed, Sep 4th · 9:45am - 1:45pm
Status: Active
MLS #: 49699701
City: Houston
Bedrooms: 2
Full baths: 5
SqFt: 1,043 sqft
Sat, Sep 7th · 1:40am - 5:40am
Status: Active
MLS #: 32878950
City: Houston
Bedrooms: 5
Full baths: 3
SqFt: 3,498 sqft
Thu, Sep 12th · 1:01am - 5:01am
Status: Pending
MLS #: 58343654
City: The Woodlands
Bedrooms: 1
Full baths: 6
SqFt: 2,018 sqft