WordPress pages
MLS Listing Search Page in WordPress
Filters, result cards and a page per listing, built in WordPress on the RESO fields.
Part of the WordPress MLS API Integration guide · Last reviewed 2026-11-20

A listing search page in WordPress is a shortcode that reads the visitor's filters from the page address, sanitizes them, builds the feed request in PHP, and prints result cards. Because PHP renders the results, they are in the page as it loads.
Key takeaways
- Every filter maps to one RESO field.
- Load results in pages instead of all at once.
- Each listing gets its own address on your site.
- Credit the listing brokerage on every card and page.
Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.
The prompt
Paste this after the build prompt has run.
Add a shortcode [saige_search] to the plugin. - A filter form: minimum and maximum price, bedrooms, bathrooms, property type, area. It submits with GET, so searches can be shared. - Sanitize each filter (absint for numbers, a fixed list for type and area) and build the $filter for saige_mls_get(). - Sort options: newest (OnMarketDate desc), price low to high, price high to low. - 24 results per page with page links, using $top and $skip, or the feed's next link. - Cards and listing pages as in [saige_listings]. - Escape all output.
Notes for WordPress
- Build the area and type lists from fixed values, never from raw visitor input placed into the filter.
- Each distinct search is cached separately by the transient key.
- Test with a caching plugin turned on, so filtered pages are not served from another visitor's cache.
Fields and filters
The standard fields behind each filter are listed on MLS Listing Fields and Search Filters for Your Website. If a filter returns nothing, check the exact values the feed uses, for example how property types are spelled.
Frequently asked questions
Why sanitize the filters?
Visitor input goes into the feed request. Sanitizing stops someone from changing the request in ways you did not intend.
Related pages in this guide
Sources
Every claim on this page that could be checked against a primary source is linked below. Where something is not publicly documented by a vendor, the page says so rather than filling the gap with an estimate.
- HTTP API (WordPress.org)
- Transients API (WordPress.org)
- wp-config.php (WordPress.org)
- Data Dictionary 2.0: Property resource (Real Estate Standards Organization (RESO))
- Data Dictionary 2.0: Media resource (Real Estate Standards Organization (RESO))