<?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 180 9G-TRONIC (2019)
R 399 950
Description
Extras include but not limited
AMG
PANORAMIC ROOF
LED LIGHTS
PARK ASSIST
REVERSE CAMERA
Mileage
119949 km
Year
Fuel Type
UNLEADED
Exterior Colour
obsidian black metallic
Transmission
AUTOMATIC
VIN
Vehicle ID
28380925
Features
Range
C-CLASS
Mileage
119 949 km
Year
2019
Colour
obsidian black metallic
Transmission
AUTOMATIC
Fuel
UNLEADED
Body Type
SEDAN
Doors
4
Service History
Full
Vin No.
WDD2050402R513114
Comments
Extras include but not limited
AMG
PANORAMIC ROOF
LED LIGHTS
PARK ASSIST
REVERSE CAMERA
<?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 399 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_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

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01613_u51255_16.jpg
USED
2020
68 000 km
AUTOMATIC
UNLEADED
polar white
R 479 950