<?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, } } }); });
Pre-Owned
VOLKSWAGEN MY20 1.0 TSI COMFORTLINE DSG (2022)
R 299 950
Description
Mileage
62437 km
Year
Fuel Type
UNLEADED
Exterior Colour
Grey
Transmission
AUTOMATIC
VIN
Vehicle ID
28382118
Features
Range
T-CROSS
Mileage
62 437 km
Year
2022
Colour
Grey
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
CROSSOVER
Doors
5
Service History
Full
Vin No.
WVGZZZC1ZNY131768
Comments
<?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 299 950
MSRP
Call Now
Available from Barons Pietermaritzburg
9 Armitage Rd, Town Hill, Pietermaritzburg, 3201, South Africa
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071028_11.jpg
USED
2020
65 000 km
AUTOMATIC
UNLEADED
REEF BLUE METALLIC
R 269 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071036_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071036_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071036_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071036_4.jpg
USED
2019
78 472 km
AUTOMATIC
UNLEADED
REFLEX SILVER METALLIC
R 269 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070692_9.jpg
USED
2019
131 550 km
AUTOMATIC
UNLEADED
PURE WHITE
R 269 990

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_25.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070809_26.jpg
USED
2022
99 500 km
MANUAL
UNLEADED
WHITE
R 275 950