<?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 200 7G-DCT (2021)
R 519 950
Description
Extras include but not limited toAMGLED LIGHTSPARK ASSISTPANOROOF
Mileage
98800 km
Year
Fuel Type
UNLEADED
Exterior Colour
Polar White
Transmission
AUTOMATIC
VIN
Vehicle ID
28380029
Features
Range
GLA
Mileage
98 800 km
Year
2021
Colour
Polar White
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
STATION WAGON
Doors
5
Service History
Full
Vin No.
W1N2477872J268037
Comments
Extras include but not limited toAMGLED LIGHTSPARK ASSISTPANOROOF
<?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 519 950
MSRP
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64285_13.jpg
USED
2020
41 314 km
AUTOMATIC
DIESEL
polar white
R 569 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