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'); Santa Pola - casaespanha.com

Properties listed in Santa Pola

For Sale

4 bedroom Apartment in Santa Pola

€ 398,000
This impressive 4-bedroom apartment, with a large terrace, is practically on the front lin ...
4 2 150 m2details
For Sale

2 bedroom House in Santa Pola

€ 420,000
Discover this spectacular penthouse located in the Tamarit area of Santa Pola. With a tota ...
2 2 146 m2details
Apartment
Available
For Sale

2 Bedrooms Apartment in Costa Blanca

€ 289,000
When you appreciate the easy life! The main apartment of this building has evening sun and ...

Compare Listings