[
‘Authorization’ => ‘Bearer ‘ . $ampre_token,
‘Accept’ => ‘application/json’
],
]);
$ampre_data = [];
if (!is_wp_error($response)) {
$body = wp_remote_retrieve_body($response);
$json = json_decode($body);
if (!empty($json->value)) {
$ampre_data = $json->value;
}
}
?>
Find Properties
Address ?? ‘No Address’;
$price = $listing->ListPrice ?? 0;
$beds = $listing->Bedrooms ?? 0;
$baths = $listing->Bathrooms ?? 0;
$sqft = $listing->SqFt ?? ‘N/A’;
$image = $listing->ListingImages[0] ?? ‘https://via.placeholder.com/400×300’;
$lat = $listing->Latitude ?? 0;
$lng = $listing->Longitude ?? 0;
?>
$
Beds
Baths
sqft
Baths
sqft
No listings found.