<?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, } } }); });
DEMO
VOLKSWAGEN 8 MY22 2.0 TSI GTI DSG (2025)
R 869 990
Description
Mileage
9500 km
Year
Fuel Type
UNLEADED
Exterior Colour
DOLPHIN GRAY METALLIC
Transmission
AUTOMATIC
VIN
Vehicle ID
28233736
Features
Range
GOLF
Mileage
9 500 km
Year
2025
Colour
DOLPHIN GRAY METALLIC
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
HATCH
Doors
5
Service History
Full
Vin No.
WVWZZZCD4RW233972
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 869 990
MSRP
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071173_12.jpg
USED
2018
148 735 km
MANUAL
UNLEADED
GREY
R 199 900

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071201_15.jpg
USED
2017
160 201 km
AUTOMATIC
DIESEL
Tungsten Silver
R 228 999

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u31473_23.jpg
USED
2019
76 673 km
MANUAL
UNLEADED
Pure White
R 269 000

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071333_15.jpg
USED
2018
108 163 km
AUTOMATIC
UNLEADED
Indium Grey
R 299 000