Live Property Listings
Fetched in real time from the Real Estate demo WordPress install
How This Works
The property custom post type is automatically exposed at /wp-json/wp/v2/property — no plugin required. Adding show_in_rest: true to the CPT registration is all it takes.
Appending ?_embed inlines the featured image, author, and taxonomy data in a single request — eliminating the need for multiple API calls.
This page uses the native fetch() API with async/await — no React, Vue, Axios, or jQuery. Just modern JavaScript and the browser's built-in capabilities.
Advanced Custom Fields data is available in the acf key of each response object when "Show in REST API" is enabled on each field group — price, beds, baths included.