[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:
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Pending
MLS #: 58343654
City: The Woodlands
Bedrooms: 1
Full baths: 6
SqFt: 2,018 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Pending
MLS #: 16974849
City: Oak Ridge
Bedrooms: 1
Full baths: 6
SqFt: 2,671 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 4249521
City: Oak Ridge
Bedrooms: 2
Full baths: 1
SqFt: 2,130 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 32878950
City: Houston
Bedrooms: 5
Full baths: 3
SqFt: 3,498 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 79373820
City: Oak Ridge
Bedrooms: 3
Full baths: 3
SqFt: 722 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 2944849
City: Katy
Bedrooms: 4
Full baths: 2
SqFt: 3,261 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 61984704
City: Tomball
Bedrooms: 5
Full baths: 6
SqFt: 240 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 79978809
City: Katy
Bedrooms: 5
Full baths: 1
SqFt: 2,991 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Active
MLS #: 89854753
City: Cypress
Bedrooms: 5
Full baths: 3
SqFt: 3,363 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Pending
MLS #: 59437738
City: Houston
Bedrooms: 5
Full baths: 4
SqFt: 3,477 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Pending
MLS #: 84790028
City: The Woodlands
Bedrooms: 6
Full baths: 2
SqFt: 240 sqft
Wed, Sep 22nd · 7:40pm - 1:40am
Status: Pending
MLS #: 65770160
City: Tomball
Bedrooms: 6
Full baths: 4
SqFt: 651 sqft