<?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,
            }
        }
    });
});
VOLKSWAGEN POLO (2025)

VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE

R 279 950
Range:
POLO
Year:
2025
Mileage:
5 000km
Colour:
SMOKY GREY METALLIC
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
28186149
Available from Barons Cape Town
<?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");
        }
    }
?>
Sales Enquiry

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_7.jpg
VOLKSWAGEN
POLO
(2025)

VOLKSWAGEN VIVO HATCH MY25 1.4

Array ( [vehicleid] => Array ( [0] => 28186137 ) [dumpdate] => Array ( [0] => 2025-09-01T16:54:06.853 ) [mmcode] => Array ( [0] => 64020701 ) [molstockbooknumber] => Array ( [0] => MOL01386_UD0050209 ) [stockbooknumber] => Array ( [0] => UD0050209 ) [vinnumber] => Array ( [0] => AAVZZZ6R6SU007656 ) [regnumber] => Array ( [0] => CAA616470 ) [uploadtype] => Array ( [0] => DEMO ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 ) [vehicleyear] => Array ( [0] => 2025 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => WILD CHERRY RED METALLIC ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 8500 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Cape Town V&A Waterfront .Come and visit our dealership for a great selection of new and used cars for sale. What you can expect when you purchase a MasterCar - a long trusted South African brand and our Brand promise :80-Point Technical Inspection/24-Hour Roadside Assistance/Certified Mileage/Full Service History/Vehicle History Integrity/Optional 2-Year / Unlimited mileage. In house vehicle finance available for your convenience. Ensure your credit score doesn't get negatively affected ) [price] => Array ( [0] => 229950 ) [dealershipid] => Array ( [0] => 51 ) [molnumber] => Array ( [0] => MOL01386 ) [dealershipname] => Array ( [0] => Barons Cape Town ) [pictures] => Array ( [0] => a:7:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050209_7.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6R6SU007656 ) ) 1
AAVZZZ6R6SU007656
AAVZZZ6R6SU007656
Colour: WILD CHERRY RED METALLIC
MOL01386
28186137

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 229 950
8 500km
2025
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_10.jpg
VOLKSWAGEN
POLO
(2025)

VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE

Array ( [vehicleid] => Array ( [0] => 28185542 ) [dumpdate] => Array ( [0] => 2025-09-01T16:53:40.65 ) [mmcode] => Array ( [0] => 64020721 ) [molstockbooknumber] => Array ( [0] => MOL01386_UD0050216 ) [stockbooknumber] => Array ( [0] => UD0050216 ) [vinnumber] => Array ( [0] => AAVZZZ6R7SU008024 ) [regnumber] => Array ( [0] => TEKTON4WP ) [uploadtype] => Array ( [0] => DEMO ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 LIFE ) [vehicleyear] => Array ( [0] => 2025 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => REEF BLUE METALLIC ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 5000 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Cape Town V&A Waterfront. Visit our dealership for a great selection used cars for sale. What you can expect when you purchase a Master Car - a long trusted Brand promise :80-Point Technical Inspection/24-Hour Roadside Assistance/Certified Mileage/Full-Service History, Optional 2-Year / Unlimited mileage. In house vehicle finance available. Chat to our team: Simphiwe Dyani Paul Zibi Daiyaan Edries Elrick Johnson Shamiel Nackerdien ) [price] => Array ( [0] => 259950 ) [dealershipid] => Array ( [0] => 51 ) [molnumber] => Array ( [0] => MOL01386 ) [dealershipname] => Array ( [0] => Barons Cape Town ) [pictures] => Array ( [0] => a:10:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_10.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6R7SU008024 ) ) 1
AAVZZZ6R7SU008024
AAVZZZ6R7SU008024
Colour: REEF BLUE METALLIC
MOL01386
28185542

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 259 950
5 000km
2025
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_7.jpg
VOLKSWAGEN
POLO
(2023)

VOLKSWAGEN HATCH MY22 1.0 TSI

Array ( [vehicleid] => Array ( [0] => 28186219 ) [dumpdate] => Array ( [0] => 2025-09-01T16:50:44.237 ) [mmcode] => Array ( [0] => 64027662 ) [molstockbooknumber] => Array ( [0] => MOL01386_U0071107 ) [stockbooknumber] => Array ( [0] => U0071107 ) [vinnumber] => Array ( [0] => AAVZZZAWZPU075040 ) [regnumber] => Array ( [0] => CAA62727 ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => HATCH MY22 1.0 TSI ) [vehicleyear] => Array ( [0] => 2023 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => SILVER ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 23900 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Cape Town V&A Waterfront. Visit our dealership for a great selection used cars for sale. What you can expect when you purchase a Master Car - a long trusted Brand promise :80-Point Technical Inspection/24-Hour Roadside Assistance/Certified Mileage/Full-Service History, Optional 2-Year / Unlimited mileage. In house vehicle finance available. Chat to our team: Simphiwe Dyani Paul Zibi Daiyaan Edries Elrick Johnson Shamiel Nackerdien ) [price] => Array ( [0] => 265950 ) [dealershipid] => Array ( [0] => 51 ) [molnumber] => Array ( [0] => MOL01386 ) [dealershipname] => Array ( [0] => Barons Cape Town ) [pictures] => Array ( [0] => a:7:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071107_7.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZAWZPU075040 ) ) 1
AAVZZZAWZPU075040
AAVZZZAWZPU075040
Colour: SILVER
MOL01386
28186219

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 265 950
23 900km
2023
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_8.jpg
VOLKSWAGEN
POLO
(2024)

VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE

Array ( [vehicleid] => Array ( [0] => 28185538 ) [dumpdate] => Array ( [0] => 2025-09-01T16:50:35.267 ) [mmcode] => Array ( [0] => 64020721 ) [molstockbooknumber] => Array ( [0] => MOL01386_UD0050225 ) [stockbooknumber] => Array ( [0] => UD0050225 ) [vinnumber] => Array ( [0] => AAVZZZ6R5SU009530 ) [regnumber] => Array ( [0] => CA7061 ) [uploadtype] => Array ( [0] => DEMO ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 LIFE ) [vehicleyear] => Array ( [0] => 2024 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => SMOKY GREY METALLIC ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 8723 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Cape Town V&A Waterfront. Visit our dealership for a great selection used cars for sale. What you can expect when you purchase a Master Car - a long trusted Brand promise :80-Point Technical Inspection/24-Hour Roadside Assistance/Certified Mileage/Full-Service History, Optional 2-Year / Unlimited mileage. In house vehicle finance available. Chat to our team: Simphiwe Dyani Paul Zibi Daiyaan Edries Vincent Braaf Shamiel Nackerdien ) [price] => Array ( [0] => 269950 ) [dealershipid] => Array ( [0] => 51 ) [molnumber] => Array ( [0] => MOL01386 ) [dealershipname] => Array ( [0] => Barons Cape Town ) [pictures] => Array ( [0] => a:8:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050225_8.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6R5SU009530 ) ) 1
AAVZZZ6R5SU009530
AAVZZZ6R5SU009530
Colour: SMOKY GREY METALLIC
MOL01386
28185538

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 269 950
8 723km
2024
MANUAL
More details