<?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
FORD 2.2 TDCI XL 4X2 D CAB AT (2020)
R 319 990
Description
Mileage
159056 km
Year
Fuel Type
DIESEL
Exterior Colour
PURE WHITE
Transmission
AUTOMATIC
VIN
Vehicle ID
28378911
Features
Range
RANGER
Mileage
159 056 km
Year
2020
Colour
PURE WHITE
Transmission
AUTOMATIC
Fuel
DIESEL
Body Type
DOUBLE CAB
Doors
4
Service History
Vin No.
AFAPXXMJ2PLY38234
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 319 990
MSRP
Back to search results

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_u0070719_16.jpg
USED
2020
72 844 km
MANUAL
DIESEL
PURE WHITE
R 279 950

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071283_17.jpg
USED
2019
122 700 km
AUTOMATIC
DIESEL
WHITE
R 319 900

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071291_11.jpg
USED
2020
130 011 km
AUTOMATIC
DIESEL
White
R 339 899

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070831_14.jpg
USED
2020
136 695 km
AUTOMATIC
DIESEL
WHITE
R 349 900