/**
* Shortcode: [topanga_listing_report id="2979698" height="900"]
* Or: [topanga_listing_report url="https://www.topangaproperties.com/listing-report/Topanga-Family-Homes/2979698/" height="900"]
*/
function topanga_listing_report_shortcode($atts) {
$atts = shortcode_atts([
'id' => '',
'url' => '',
'height' => '900',
'width' => '100%',
], $atts, 'topanga_listing_report');

// Build URL from ID if provided
$url = trim($atts['url']);
if (!$url && $atts['id']) {
$url = 'https://www.topangaproperties.com/listing-report/Topanga-Family-Homes/' . preg_replace('/[^0-9]/', '', $atts['id']) . '/';
}

// Fallback if no URL
if (!$url) return '';

$height = preg_replace('/[^0-9]/', '', (string)$atts['height']);
if ($height === '') $height = '900';

$width = esc_attr($atts['width']);

return sprintf(
'


',
$width,
esc_url($url),
$width,
esc_attr($height)
);
}
add_shortcode('topanga_listing_report', 'topanga_listing_report_shortcode');

Address

395 S. Topanga Canyon Blvd. Suite 101 Topanga, CA 90290

Email

Broker DRE#
0952565

Office

(310) 455-1344

Mobile

(310) 745-8991
© Copyright 2026 | 395 S. Topanga Canyon Blvd. Suite 101 | All Rights Reserved
Chantal von Wetter
DRE# 01400450

Address

395 S. Topanga Canyon Blvd. Suite 101 Topanga, CA 90290

Email

Broker DRE#
0952565

Office

(310) 455-1344

Mobile

(310) 745-8991
Chantal von Wetter
DRE# 01400450
© Copyright 2026 | 395 S. Topanga Canyon Blvd. Suite 101 | All Rights Reserved