WordPress + MLS data
Add Live MLS Listings to a WordPress Real Estate Site
Connect BC board MLS data to a site built with WordPress: where the key goes, the prompt to paste, a listing search, one-area pages and sold prices.

WordPress runs PHP on the server, so it can call an MLS feed without any extra service. A small plugin reads the key from wp-config.php, asks the feed for listings with WordPress's own HTTP functions, keeps a short-lived copy with the Transients API so pages stay fast, and shows the listings with a shortcode. The key never reaches the browser, because only PHP on the server reads it.
Key takeaways
- Define the key as a constant in wp-config.php, outside the web root's public files.
- Call the feed with wp_remote_get in PHP.
- Cache results with set_transient for a time your board's freshness rule allows.
- Never put the key in theme JavaScript.
A plugin, not a theme edit
Keep the feed code in its own small plugin. Themes change, and code inside a theme disappears with it. A plugin keeps working when you switch themes, and it keeps the feed code in one file you can review.
You can ask any AI assistant, including Claude or ChatGPT, to extend the starter plugin on WordPress Prompt to Build a Real Estate Site With MLS Listings. The rules in the prompt keep the key on the server.
The steps for WordPress
Work through the pages in order. Each one ends with something you can check in WordPress before moving on.
- Store the key: Store Your MLS API Key in WordPress
- Paste the build prompt: WordPress Prompt to Build a Real Estate Site With MLS Listings
- Add listing search: MLS Listing Search Page in WordPress
- Limit to one neighbourhood: One-Neighbourhood MLS Site in WordPress: Kitsilano Example
- Add sold prices behind a sign-up: Sold Prices Behind a Sign-Up in WordPress
Before you start
You need access to the feed first. Send a request with the form on this page; our team contacts you, checks what your board allows, and sets up access. The general guide at MLS API for BC Real Estate Websites explains the data, and Board Rules for Showing MLS Data on Your Website lists what to settle with your board before launch.
Frequently asked questions
Do I need an IDX plugin to show MLS listings on WordPress?
No. With an API feed, a small plugin of your own can read the listings and show them in your theme's design. The starter plugin in this guide shows how.
Will listing pages slow down my WordPress site?
Caching each feed answer with the Transients API keeps repeat page loads from calling the feed every time.
Can I use this on WordPress.com?
Custom plugins need a WordPress.com plan that allows them, or a self-hosted WordPress site.
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)
- RESO Web API (Real Estate Standards Organization (RESO))