<?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 1.4 COMFORTLINE (2012)
R 169 950
Description
Mileage
54477 km
Year
Fuel Type
UNLEADED
Exterior Colour
WHITE
Transmission
MANUAL
VIN
Vehicle ID
28236202
Features
Range
POLO
Mileage
54 477 km
Year
2012
Colour
WHITE
Transmission
MANUAL
Fuel
UNLEADED
Body Type
HATCH
Doors
5
Service History
None
Vin No.
AAVZZZ6RZCU052627
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 169 950
MSRP
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01443_u0070959_23.jpg
USED
2014
139 000 km
MANUAL
UNLEADED
White
R 129 500

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071139_10.jpg
USED
2013
112 438 km
MANUAL
UNLEADED
MEDIUM SILVER METALL
R 169 900

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070856_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070856_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070856_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070856_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070856_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01182_u0070856_6.jpg
USED
2018
77 344 km
MANUAL
UNLEADED
GREY
R 175 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01630_u0070909_10.jpg
USED
2021
63 349 km
MANUAL
UNLEADED
BLUE
R 179 950