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

NISSAN 1.5 dCi A/C + SAFETY PACK

R 199 900
Range:
NP200
Year:
2020
Mileage:
150 670 km
Colour:
WHITE
Transmission:
MANUAL
Fuel:
DIESEL
Vehicle ID:
29108945

Reliable Workhorse with Full Service History

This used vehicle is the ideal choice for anyone seeking practicality and durability. With a full service record and a mileage of 150 670 kilometres, it promises reliability for years to come. The air conditioning keeps you comfortable, while the rubberized load bin and canopy enhance its utility for all your transport needs.

Enjoy peace of mind with easy financing options available through all major banks. Trade-ins are accepted, and you can also get professional advice on upgrading your maintenance plan and service plan. Additional value-added products, like tracking devices and safety films, are also available to enhance your ownership experience.

Key highlights:
– Full service record
– Air conditioning for comfort
– Canopy for additional storage
– Rubberized load bin
– Easy finance options available
– Trade-ins accepted
– Professional advice on maintenance and service plans
– Value-added products available

Trust in the NMI brand for a smart and dependable purchase.

Available from NMI Ford Alberton
<?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 - Pre-Owned Forms

Similar Listings