<?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
HYUNDAI 1.0 TGDI MOTION (2021)
R 209 950
Description
Mileage
46863 km
Year
Fuel Type
UNLEADED
Exterior Colour
GREY
Transmission
MANUAL
VIN
Vehicle ID
28128664
Features
Range
VENUE
Mileage
46 863 km
Year
2021
Colour
GREY
Transmission
MANUAL
Fuel
UNLEADED
Body Type
CROSSOVER
Doors
5
Service History
None
Vin No.
MALFB81ALNM217020
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 209 950
MSRP
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_25.jpg
HYUNDAI
VENUE
(2023)
HYUNDAI 1.0 MOTION
R 249 950
40 797 km
2023
MANUAL
UNLEADED
WHITE

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_15.jpg
HYUNDAI
VENUE
(2023)
HYUNDAI 1.0 N LINE DCT
R 319 890
56 000 km
2023
AUTOMATIC
UNLEADED
WHITE

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01343_u0070669_25.jpg
USED
2023
40 797 km
MANUAL
UNLEADED
WHITE
R 249 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070898_15.jpg
USED
2023
56 000 km
AUTOMATIC
UNLEADED
WHITE
R 319 890