<?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 AMAROK (2025)
VOLKSWAGEN MY23 2.0 BiTDI LIFE D CAB 4MOTION 10A
R 749 900
Range:
AMAROK
Year:
2025
Mileage:
14 715km
Colour:
CLEAR WHITE
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28216212
Available from Barons Kuruman
<?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/tol10136_u0070116_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_20.jpg
VOLKSWAGEN
AMAROK
(2018)
VOLKSWAGEN 3.0 TDI D/CAB HIGHLINE 4MOTION AT
Array
(
[vehicleid] => Array
(
[0] => 28216246
)
[dumpdate] => Array
(
[0] => 2025-09-06T16:54:23.057
)
[mmcode] => Array
(
[0] => 64072700
)
[molstockbooknumber] => Array
(
[0] => TOL10136_U0070116
)
[stockbooknumber] => Array
(
[0] => U0070116
)
[vinnumber] => Array
(
[0] => WV1ZZZ2HZJA006815
)
[regnumber] => Array
(
[0] => CL59012
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => AMAROK
)
[vehiclemodel] => Array
(
[0] => 3.0 TDI D/CAB HIGHLINE 4MOTION AT
)
[vehicleyear] => Array
(
[0] => 2018
)
[bodytype] => Array
(
[0] => DOUBLE CAB
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => DIESEL
)
[colour] => Array
(
[0] => WHITE
)
[numberofdoors] => Array
(
[0] => 4
)
[mileage] => Array
(
[0] => 131684
)
[servicehistory] => Array
(
[0] => None
)
[comments] => Array
(
[0] =>
)
[price] => Array
(
[0] => 469899
)
[dealershipid] => Array
(
[0] => 233
)
[molnumber] => Array
(
[0] => TOL10136
)
[dealershipname] => Array
(
[0] => Barons Kuruman
)
[pictures] => Array
(
[0] => a:13:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_4.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_5.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_7.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_9.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_10.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_14.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_16.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_17.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_18.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_19.jpg";i:12;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070116_20.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WV1ZZZ2HZJA006815
)
)
1
WV1ZZZ2HZJA006815
WV1ZZZ2HZJA006815
Colour: WHITE
TOL10136
28216246
28216246
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/tol10136_ud0050048_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_14.jpg
VOLKSWAGEN
AMAROK
(2025)
VOLKSWAGEN MY23 2.0 BiTDI STYLE D CAB 4MOTION 10
Array
(
[vehicleid] => Array
(
[0] => 28216329
)
[dumpdate] => Array
(
[0] => 2025-09-06T16:53:30.287
)
[mmcode] => Array
(
[0] => 64072865
)
[molstockbooknumber] => Array
(
[0] => TOL10136_UD0050048
)
[stockbooknumber] => Array
(
[0] => UD0050048
)
[vinnumber] => Array
(
[0] => WV4ZZZT17RS029057
)
[regnumber] => Array
(
[0] => DYF651NC
)
[uploadtype] => Array
(
[0] => DEMO
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => AMAROK
)
[vehiclemodel] => Array
(
[0] => MY23 2.0 BiTDI STYLE D CAB 4MOTION 10
)
[vehicleyear] => Array
(
[0] => 2025
)
[bodytype] => Array
(
[0] => DOUBLE CAB
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => DIESEL
)
[colour] => Array
(
[0] => MEDIUM SILVER METALLIC
)
[numberofdoors] => Array
(
[0] => 4
)
[mileage] => Array
(
[0] => 2000
)
[servicehistory] => Array
(
[0] => None
)
[comments] => Array
(
[0] => MP 5Yr 100000km DFLT
)
[price] => Array
(
[0] => 899900
)
[dealershipid] => Array
(
[0] => 233
)
[molnumber] => Array
(
[0] => TOL10136
)
[dealershipname] => Array
(
[0] => Barons Kuruman
)
[pictures] => Array
(
[0] => a:9:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_4.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_5.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_6.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_7.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_9.jpg";i:7;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_11.jpg";i:8;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050048_14.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WV4ZZZT17RS029057
)
)
1
WV4ZZZT17RS029057
WV4ZZZT17RS029057
Colour: MEDIUM SILVER METALLIC
TOL10136
28216329
28216329
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"); } } ?>