Shop . Click . Drive
<?php
  $post_id = get_the_id();
// echo print_r(get_vehicle_gallery_images()); 
$image_urls = get_post_meta($post_id, 'pictures', true);

if (is_string($image_urls)) {
    $images = explode(',', $image_urls);
} elseif (is_array($image_urls)) {
    $images = $image_urls;
} else {
    $images = [];
}

if (!empty($images)): ?>
    <div class="vehicle-gallery">
        <?php foreach ($images as $index => $img_url): ?>
            <a href="<?php echo esc_url(trim($img_url)); ?>" class="glightbox" data-gallery="vehicle-gallery">
                <?php if ($index === 0): ?>
                    <img src="<?php echo esc_url(trim($img_url)); ?>" alt="Vehicle Image" class="gallery-main-image" />
                <?php else: ?>
                    <img src="<?php echo esc_url(trim($img_url)); ?>" alt="Gallery Thumb" class="gallery-thumb"  />
                <?php endif; ?>
            </a>
        <?php endforeach; ?>
    </div>
<?php endif; ?>

document.addEventListener('DOMContentLoaded', function () {
    new Swiper('.vehicle-gallery', {
        slidesPerView: 5,
        spaceBetween: 10,
        loop: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
        breakpoints: {
            768: {
                slidesPerView: 3,
            },
            480: {
                slidesPerView: 2,
            }
        }
    });
});
1
Pre-Owned

BMW MY20 sDRIVE18d xLINE STEPTRONIC (2021)

R 429 950
Description
Optional Extras Included - Multi Function Steering Wheel - Electric Windows - Leather Seats - Alloy Wheels - Front and Rear PDC - Reverse Camera - Finance Done With all major banks
Mileage
99230 km
Year
Fuel Type
DIESEL
Exterior Colour
GREY
Transmission
AUTOMATIC
VIN
Vehicle ID
28012552
Features
Range
X1
Mileage
99 230 km
Year
2021
Colour
GREY
Transmission
AUTOMATIC
Fuel
DIESEL
Body Type
STATION WAGON
Doors
5
Service History
Full
Vin No.
WBA52AC0405T25378
Comments
Optional Extras Included - Multi Function Steering Wheel - Electric Windows - Leather Seats - Alloy Wheels - Front and Rear PDC - Reverse Camera - Finance Done With all major banks

Finance Calculator

Car Loan Calculator with balloon
%
Years
%

Estimated Payment

R/month

Car Price

R

Principal
R
Car Loan Calculator with balloon
%
Years
%

Estimated Payment

R/month

Car Price

R

Principal
R
Contact Person
Contact Email
<?php
  $post_id = get_the_id();

   $custom_fields = get_post_meta($post_id);
echo $custom_fields['mmcode'][0] . '<br />';
  echo print_r($custom_fields);
    if (empty($custom_fields)) {
        error_log("No custom fields found for post ID: $post_id");
        return;
    }

    error_log("Custom fields for post ID $post_id:");

    foreach ($custom_fields as $key => $value) {
        // $value is always an array
        if (is_array($value)) {
            foreach ($value as $val) {
                error_log("$key => $val");
            }
        } else {
            error_log("$key => $value");
        }
    }
?>
Back to search results
R 429 950
MSRP
Vehicle Enquiry
Back to search results
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_12.jpg
R 459 890
87 500 km
2021
AUTOMATIC
DIESEL
BLUE
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_10.jpg
R 469 000
49 800 km
2020
AUTOMATIC
UNLEADED
Black Sapphire Metal
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_14.jpg
R 469 000
53 500 km
2020
AUTOMATIC
UNLEADED
Alpine White III
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_11.jpg
R 469 900
100 000 km
2021
AUTOMATIC
DIESEL
Mineral White Metallic
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070877_12.jpg
R 459 890
BMW
X1
(2021)

BMW MY20 sDRIVE20d STEPTRONIC

USED
2021
87 500 km
AUTOMATIC
DIESEL
BLUE
R 459 890
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103449_10.jpg
USED
2020
49 800 km
AUTOMATIC
UNLEADED
Black Sapphire Metal
R 469 000
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103929_14.jpg
R 469 000
BMW
X1
(2020)

BMW MY20 sDRIVE18i STEPTRONIC

USED
2020
53 500 km
AUTOMATIC
UNLEADED
Alpine White III
R 469 000
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01609_25281_11.jpg
USED
2021
100 000 km
AUTOMATIC
DIESEL
Mineral White Metallic
R 469 900