<?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
AUDI SPORTBACK MY25 30 TFSI ADVANCED S TRONIC (2025)
R 475 950
Description
Mileage
7700 km
Year
Fuel Type
UNLEADED
Exterior Colour
GLACIER WHITE
Transmission
AUTOMATIC
VIN
Vehicle ID
28029481
Features
Range
A1
Mileage
7 700 km
Year
2025
Colour
GLACIER WHITE
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
HATCH
Doors
5
Service History
Vin No.
WAUZZZGB6SR013730
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 475 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/tol10172_u500170_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_11.jpg
AUDI
A1
(2014)
AUDI SPORTBACK 1.4 TFSI AMBITION
R 164 950
132 000 km
2014
MANUAL
UNLEADED
White

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_13.jpg
AUDI
A1
(2022)
AUDI SPORTBACK MY20 40 TFSI S LINE S TRONIC
R 469 000
26 400 km
2022
AUTOMATIC
UNLEADED
White

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_7.jpg
AUDI
A1
(2025)
AUDI SPORTBACK MY25 30 TFSI ADVANCED S TRONIC
R 489 950
1 500 km
2025
AUTOMATIC
UNLEADED
GLACIER WHITE

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_6.jpg
AUDI
A1
(2025)
AUDI SPORTBACK MY25 30 TFSI ADVANCED S TRONIC
R 499 950
200 km
2025
AUTOMATIC
UNLEADED
MANHATTAN GRAY METALLIC

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10172_u500170_11.jpg
USED
2014
132 000 km
MANUAL
UNLEADED
White
R 164 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10163_u103844_13.jpg
USED
2022
26 400 km
AUTOMATIC
UNLEADED
White
R 469 000

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070483_7.jpg
USED
2025
1 500 km
AUTOMATIC
UNLEADED
GLACIER WHITE
R 489 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070566_6.jpg
USED
2025
200 km
AUTOMATIC
UNLEADED
MANHATTAN GRAY METALLIC
R 499 950