<?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
MERCEDES 200d 7G-DCT (2020)
R 569 950
Description
Extras include but not limited toAMGLEDPARK ASSISTPANOROOFREVERSE CAM
Mileage
41314 km
Year
Fuel Type
DIESEL
Exterior Colour
polar white
Transmission
AUTOMATIC
VIN
Vehicle ID
28380025
Features
Range
GLA
Mileage
41 314 km
Year
2020
Colour
polar white
Transmission
AUTOMATIC
Fuel
DIESEL
Body Type
STATION WAGON
Doors
5
Service History
Full
Vin No.
W1N2477122J136089
Comments
Extras include but not limited toAMGLEDPARK ASSISTPANOROOFREVERSE CAM
<?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 569 950
MSRP
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64315_13.jpg
USED
2021
98 800 km
AUTOMATIC
UNLEADED
Polar White
R 519 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071080_13.jpg
USED
2024
28 000 km
AUTOMATIC
UNLEADED
BLACK
R 699 890

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10167_u0070659_7.jpg
USED
2022
37 000 km
AUTOMATIC
UNLEADED
WHITE
R 699 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u50652_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_25.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_26.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51260_27.jpg
USED
2023
21 500 km
AUTOMATIC
DIESEL
digital white metall
R 729 950