[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:
0 listings matched your search. Please try to broaden your search criteria or try again later.
