<?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,
            }
        }
    });
});
MG MG3 1.5 LUX A/T (2026)

MG

R 319 950
Range:
MG3 1.5 LUX A/T
Year:
2026
Mileage:
1 500km
Colour:
Red
Transmission:
AUTOMATICMANUAL
Fuel:
DieselPtrol
Vehicle ID:
29236798
Additional Information:

Experience exceptional value with this remarkable used vehicle. This model is designed for reliability and efficiency, making it a smart choice for everyday driving. Enjoy a seamless blend of style and functionality that enhances every journey.

Take advantage of our welcoming trade-in policy and flexible finance options with all major banks. We also offer convenient nationwide delivery to ensure your purchase experience is effortless. Our dedicated and professional sales team is ready to assist you with information on our HOLDING DEPOSIT policy.

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

Key highlights:
– Used vehicle in excellent condition
– Trade-ins welcome
– Finance options available with major banks
– Nationwide delivery available
– Professional sales team to assist you

Trust NMI to deliver quality and peace of mind with every purchase.

Available from NMI MG Umhlanga
<?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

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050027_19.jpg
MG
MG3 1.5 LUX A/T
(2026)

MG

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
LSJWP4U60SZ271844
LSJWP4U60SZ271844
Colour: GREY
TOL10181
29236036
<?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 339 899
3 050km
2026
AUTOMATICMANUAL
More details