WordPress pages

    One-Neighbourhood MLS Site in WordPress: Kitsilano Example

    Limit every page of a WordPress site to one area, using the board's own area name.

    Part of the WordPress MLS API Integration guide · Last reviewed 2026-11-20

    WordPress site showing only Kitsilano MLS listings

    To limit a WordPress site to Kitsilano, define the area once in wp-config.php or the plugin, and have saige_mls_get() add the area filter to every request. Kitsilano is a sub-area of Vancouver West in Greater Vancouver listings, held in MLSAreaMinor.

    Key takeaways

    • Find the exact area spelling in the feed first.
    • Put the filter in the server code, not in a page.
    • Kitsilano is a sub-area (MLSAreaMinor) of Vancouver West.
    • Write an area guide so the site is more than a search box.

    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 into the same project after search works.

    Area filter for the WordPress plugin
    // In wp-config.php
    define( 'SAIGE_SITE_AREAS', 'Kitsilano' );
    
    // In saige_mls_get(), before building the query:
    $areas = array_map( 'trim', explode( ',', SAIGE_SITE_AREAS ) );
    $area_filter = implode( ' or ', array_map( function ( $a ) {
      return "MLSAreaMinor eq '" . str_replace( "'", "''", $a ) . "'";
    }, $areas ) );
    $args['$filter'] = isset( $args['$filter'] )
      ? '(' . $args['$filter'] . ') and (' . $area_filter . ')'
      : $area_filter;

    Where the filter lives in WordPress

    • Adding the filter inside saige_mls_get() means every shortcode gets it.
    • Check the exact spelling against the feed first, as shown on Show MLS Listings From One Neighbourhood Only.
    • Clear transients after changing the area, or wait for the cache to expire.

    Checking the area

    Search for a price range wide enough to return every listing and check the area of each result. Then open a listing you know is outside the area, by its address, and confirm the site does not show it. The method for finding the board's exact area name is on Show MLS Listings From One Neighbourhood Only.

    Frequently asked questions

    How do I clear the cached listings?

    Transients expire on their own. To clear them at once, use a plugin that deletes transients, or change the cache key.

    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.

    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