<?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,
            }
        }
    });
});

FORD

R 599 889
Range:
RANGER 2.0D SIT XLT A/T D/C P/U
Year:
2026
Mileage:
6 km
Colour:
CARBONIZED GREY
Transmission:
AUTOMATICMANUAL
Fuel:
DieselPtrol
Vehicle ID:
29401469

Unmatched Performance and Versatility

Experience the perfect blend of power and practicality. This vehicle is designed to tackle tough terrains while ensuring your comfort on the road. With its robust construction and advanced features, it’s a smart choice for both work and play.

Equipped to handle any challenge, this option offers reliability and efficiency. Its spacious interior and modern technology make every journey enjoyable. Whether you’re commuting or adventuring, it delivers on all fronts.

Mileage is recorded at the time of advertising and may vary.

Key Highlights:
– Exceptional performance and handling
– Spacious and comfortable interior
– Modern technology for enhanced driving experience
– Built to withstand tough conditions
– Ideal for both urban and off-road driving
– Reliable and efficient fuel economy

Trust in the quality and reputation of NMI. We ensure every vehicle meets high standards for your peace of mind.

Available from NMI Ford Pietermaritzburg
<?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");
        }
    }
?>
Sales Enquiry - Satellite

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071399_11.jpg
FORD
RANGER 2.0D SIT XLT A/T D/C P/U
(2026)

FORD

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AFAPXXMJ2PTS61652
AFAPXXMJ2PTS61652
Colour: CARBONIZED GREY
MOL01627
29401468

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 599 889
6km
2026
AUTOMATICMANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_ud0050301_10.jpg
FORD
RANGER 2.0D SIT XLT A/T D/C P/U
(2026)

FORD

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AFAPXXMJ2PTS58093
AFAPXXMJ2PTS58093
Colour: FROZEN WHITE
MOL01627
29399758

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 619 890
4km
2026
AUTOMATICMANUAL
More details