<?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 BASE 4X2 SUPER CAB (2020)
R 279 950
Description
Mileage
72844 km
Year
Fuel Type
DIESEL
Exterior Colour
PURE WHITE
Transmission
MANUAL
VIN
Vehicle ID
28380983
Features
Range
RANGER
Mileage
72 844 km
Year
2020
Colour
PURE WHITE
Transmission
MANUAL
Fuel
DIESEL
Body Type
EXTENDED CAB
Doors
2
Service History
Full
Vin No.
AFAGXXMJ2GKT45350
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 279 950
MSRP
Call Now
Available from Barons Pietermaritzburg
9 Armitage Rd, Town Hill, Pietermaritzburg, 3201, South Africa
Back to search results

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/mol01400_u0070735_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01400_u0070735_13.jpg
USED
2020
159 056 km
AUTOMATIC
DIESEL
PURE WHITE
R 319 990

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