<?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,
            }
        }
    });
});
GWM P SERIES (2022)

GWM 2.0 LS D CAB 4X2 AT

R 359 900
Range:
P SERIES
Year:
2022
Mileage:
52 300 km
Colour:
WHITE
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
29431859

Exceptional Value Awaits

Discover a reliable used vehicle that combines performance and practicality. This model is ready for your next adventure, with trade-in options available. Enjoy easy finance through all major banks, ensuring a smooth purchasing experience tailored to your needs.

Our expert team offers valuable advice on upgrading your Maintenance Plan, Service Plan, and extended Warranties. Explore additional options like tracking devices and Safety Film (Smash & Grab) for added peace of mind.

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

Key highlights:
– Trade-in accepted
– Easy finance available through major banks
– Professional advice on Maintenance Plans
– Service Plan upgrade options
– Extended Warranty options
– Value-added products available
– Dedicated Pre Owned Sales Executives ready to assist

Trust in the NMI brand for a transparent and reliable buying experience.

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 - Satellite

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_25.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0071185_26.jpg
GWM
P SERIES
(2025)

GWM 2.0 LT D CAB 4X4 AT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
LGWDCF191NJ634158
LGWDCF191NJ634158
Colour: BLACK
MOL01634
29430389

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 469 900
21500km
2025
AUTOMATIC
More details