WordPress set up
WordPress Prompt to Build a Real Estate Site With MLS Listings
A starting point for WordPress: the site structure, the feed rules and the board items, in one prompt.
Part of the WordPress MLS API Integration guide · Last reviewed 2026-11-20

For WordPress, the starting point is a small plugin rather than a chat prompt. Install the starter plugin from /wordpress-mls-api/store-api-key, then use the prompt below with any AI assistant to extend it into a shortcode that shows listings in your theme. The prompt tells the assistant to keep the key in PHP and to escape all output.
Key takeaways
- Store the key first, so the prompt only names the secret.
- Fill in the brackets: agent name, area, board notice text.
- The prompt tells the builder to show only real listings from the feed.
- Check the result in WordPress before adding more pages.
Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.
Before you paste
- wp-config.php holds both constants (Store Your MLS API Key in WordPress).
- The starter plugin is installed and active.
- You have your board's required notice text.
The prompt
Copy it, fill in the parts in square brackets, and paste it as one message.
Extend this WordPress plugin (pasted below) for a REALTOR site.
- Keep every feed call in PHP through saige_mls_get(). Never output SAIGE_MLS_API_KEY or SAIGE_MLS_API_URL, and never call the feed from JavaScript.
- Add a shortcode [saige_listings] that shows active listings (StandardStatus eq 'Active') as cards: first photo, ListPrice, BedroomsTotal, BathroomsTotalInteger, LivingArea, UnparsedAddress, MLSAreaMinor and ListOfficeName.
- Add a listing page at /listing/{ListingKey} using a rewrite rule, with all photos, PublicRemarks, details and a contact form (name, email, phone all required) that emails [agent email] with the ListingKey and address.
- Every card and listing page shows this notice: [paste the notice text your board requires].
- Escape all output with esc_html, esc_attr and esc_url. Sanitize all input.
- Do not invent listings or sample data. If the feed returns nothing, show "Listings are not available right now".
[paste the starter plugin here]Check what it built
- Add [saige_listings] to a page and check listings appear.
- View the page source and search for your key: it must not appear.
- Open a listing page and check the brokerage and board notice.
- Send a test enquiry.
Frequently asked questions
Can I use a page builder with the shortcode?
Yes. Most page builders have a shortcode block. The listings are rendered by PHP before the page reaches the visitor.
Do listing pages need their own addresses?
Yes, so each listing can be linked, shared and found. The prompt adds a rewrite rule for /listing/{ListingKey}.
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))