function rol_properties_by_region_shortcode($atts) { $atts = shortcode_atts([ 'region' => '', 'area' => '' ], $atts); if (empty($atts['region'])) return ''; global $costa_calida, $costa_del_sol, $costa_blanca, $costa_luz; $region_map = [ 'costa_calida' => $costa_calida, 'costa_del_sol' => $costa_del_sol, 'costa_blanca' => $costa_blanca, 'costa_luz' => $costa_luz, ]; if (empty($region_map[$atts['region']])) return ''; $region_locations = $region_map[$atts['region']]; // ✅ MULTIPLE AREA SUPPORT if (!empty($atts['area'])) { $areas = array_map('trim', explode(',', $atts['area'])); $valid_areas = array_intersect($areas, $region_locations); if (!empty($valid_areas)) { $_GET['location'] = implode(',', $valid_areas); } else { return '

This area does not belong to this region.

'; } } else { $_GET['location'] = implode(',', $region_locations); } return rol_properties_shortcode([]); } add_shortcode('rol_properties_region', 'rol_properties_by_region_shortcode'); Costa Calida - casaespanha.com

Properties listed in Costa Calida

3 bedroom Apartment in Los Alcázares

€ 384,900
Modern apartments in Santa Rosalia on the Costa Calida. The new residential complex consis ...
3 2 112 m2details

Compare Listings