<?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 (2018)
VOLKSWAGEN 3.0 TDI D/CAB HIGHLINE 4MOTION AT
R 469 899
Range:
AMAROK
Year:
2018
Mileage:
131 684km
Colour:
WHITE
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28216246
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_ud0050029_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_9.jpg
VOLKSWAGEN
AMAROK
(2025)
VOLKSWAGEN MY23 2.0 BiTDI LIFE D CAB 4MOTION 10A
Array
(
[vehicleid] => Array
(
[0] => 28216212
)
[dumpdate] => Array
(
[0] => 2025-09-06T16:54:23.057
)
[mmcode] => Array
(
[0] => 64072845
)
[molstockbooknumber] => Array
(
[0] => TOL10136_UD0050029
)
[stockbooknumber] => Array
(
[0] => UD0050029
)
[vinnumber] => Array
(
[0] => WV4ZZZT15RS010426
)
[regnumber] => Array
(
[0] => DFD282NC
)
[uploadtype] => Array
(
[0] => DEMO
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => AMAROK
)
[vehiclemodel] => Array
(
[0] => MY23 2.0 BiTDI LIFE D CAB 4MOTION 10A
)
[vehicleyear] => Array
(
[0] => 2025
)
[bodytype] => Array
(
[0] => DOUBLE CAB
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => DIESEL
)
[colour] => Array
(
[0] => CLEAR WHITE
)
[numberofdoors] => Array
(
[0] => 4
)
[mileage] => Array
(
[0] => 14715
)
[servicehistory] => Array
(
[0] => None
)
[comments] => Array
(
[0] => MP 5Yr 100000km DFLT
)
[price] => Array
(
[0] => 749900
)
[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_ud0050029_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050029_9.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WV4ZZZT15RS010426
)
)
1
WV4ZZZT15RS010426
WV4ZZZT15RS010426
Colour: CLEAR WHITE
TOL10136
28216212
28216212
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"); } } ?>