<?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 C 220d 9G-TRONIC (2019)
R 569 950
Description
Extras include but not limited toAMGLED LIGHTSPARK ASSISTREV CAM
Mileage
69219 km
Year
Fuel Type
DIESEL
Exterior Colour
Silver
Transmission
AUTOMATIC
VIN
Vehicle ID
28380946
Features
Range
C-CLASS
Mileage
69 219 km
Year
2019
Colour
Silver
Transmission
AUTOMATIC
Fuel
DIESEL
Body Type
SEDAN
Doors
4
Service History
Full
Vin No.
WDD2053142F816970
Comments
Extras include but not limited toAMGLED LIGHTSPARK ASSISTREV 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/mol01640_u0070430_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070430_11.jpg
USED
2016
76 500 km
AUTOMATIC
UNLEADED
WHITE
R 279 899

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_25.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_26.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_27.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_28.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_29.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_30.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_31.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_32.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_33.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_34.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_35.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_36.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_37.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_38.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_39.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070745_40.jpg
USED
2018
149 000 km
AUTOMATIC
UNLEADED
WHITE
R 309 990

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64162_11.jpg
USED
2019
119 949 km
AUTOMATIC
UNLEADED
obsidian black metallic
R 399 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10003_u64281_13.jpg
USED
2020
82 900 km
AUTOMATIC
UNLEADED
iridium silver metallic
R 399 950