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 real estate site connected to a BC MLS feed

    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.

    Everything in this guide

    5 pages, grouped by what you are trying to do.

    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.

    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.

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849