<?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
R 289 900
Range:
POLO
Year:
2025
Mileage:
5 000km
Colour:
PURE WHITE
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
28498561
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");
}
}
?>Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_9.jpg
VOLKSWAGEN
POLO
(2025)
VOLKSWAGEN VIVO HATCH MY25 1.4
Array
(
[vehicleid] => Array
(
[0] => 28503530
)
[dumpdate] => Array
(
[0] => 2025-11-02T16:54:50.563
)
[mmcode] => Array
(
[0] => 64020701
)
[molstockbooknumber] => Array
(
[0] => MOL01386_UD0050277
)
[stockbooknumber] => Array
(
[0] => UD0050277
)
[vinnumber] => Array
(
[0] => AAVZZZ6R9SU015735
)
[regnumber] => Array
(
[0] => CAA403285
)
[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] => REFLEX SILVER METALLIC
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 11551
)
[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 DyaniPaul ZibiDaiyaan EdriesElrick Johnson Shamiel NackerdienDemo Model
)
[price] => Array
(
[0] => 235950
)
[dealershipid] => Array
(
[0] => 51
)
[molnumber] => Array
(
[0] => MOL01386
)
[dealershipname] => Array
(
[0] => Barons Cape Town
)
[pictures] => Array
(
[0] => a:9:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_9.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => AAVZZZ6R9SU015735
)
)
1
AAVZZZ6R9SU015735
AAVZZZ6R9SU015735
Colour: REFLEX SILVER METALLIC
MOL01386
28503530
28503530
Enquire
<?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");
}
}
?>
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_10.jpg
VOLKSWAGEN
POLO
(2024)
VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE
Array
(
[vehicleid] => Array
(
[0] => 28503862
)
[dumpdate] => Array
(
[0] => 2025-11-02T16:51:00.55
)
[mmcode] => Array
(
[0] => 64020721
)
[molstockbooknumber] => Array
(
[0] => MOL01386_U0071188
)
[stockbooknumber] => Array
(
[0] => U0071188
)
[vinnumber] => Array
(
[0] => AAVZZZ6R4SU010376
)
[regnumber] => Array
(
[0] => CAA625210
)
[uploadtype] => Array
(
[0] => USED
)
[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] => PURE WHITE
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 7560
)
[servicehistory] => Array
(
[0] =>
)
[comments] => Array
(
[0] =>
)
[price] => Array
(
[0] => 239900
)
[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_ud0050236_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_10.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => AAVZZZ6R4SU010376
)
)
1
AAVZZZ6R4SU010376
AAVZZZ6R4SU010376
Colour: PURE WHITE
MOL01386
28503862
28503862
Enquire
<?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");
}
}
?>
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] => 28503937
)
[dumpdate] => Array
(
[0] => 2025-11-02T16:51:09.253
)
[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] => 239900
)
[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
28503937
28503937
Enquire
<?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");
}
}
?>
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] => 28503931
)
[dumpdate] => Array
(
[0] => 2025-11-02T16:54:59.423
)
[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] => 11066
)
[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] => 239900
)
[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
28503931
28503931
Enquire
<?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");
}
}
?>
