<?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 COMFORT A/T (2026)

MG

R 299 899
Range:
MG3 1.5 COMFORT A/T
Year:
2026
Mileage:
3 050km
Colour:
WHITE
Transmission:
AUTOMATICMANUAL
Fuel:
DieselPtrol
Vehicle ID:
29434718
Additional Information:

Unlock your driving potential with this exceptional demo vehicle. It combines style and practicality, making it the perfect choice for those seeking a reliable ride.

This vehicle offers a hassle-free experience with trade-ins welcomed, ensuring an easy upgrade for you. Enjoy the convenience of nationwide delivery right to your doorstep. Flexible in-house finance options make securing your new vehicle straightforward and accessible.

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

Key highlights:
– Demo condition for added value
– Trade-ins accepted for easy upgrading
– Nationwide delivery available
– In-house finance options for convenience
– Value-added products available (not included in price):
– Safety film (smash & grab)
– Warranty extension
– Paint protection
– Maintenance plan extension
– Cosmetic plan (scratch & dent repair)

Discover the difference that comes with trusting NMI. Experience quality and service excellence with every vehicle purchase.

Available from NMI MG Tygervalley
<?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_ud0050016_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050016_14.jpg
MG
MG3 1.5 COMFORT A/T
(2026)

MG

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
LSJWP4U63SZ109397
LSJWP4U63SZ109397
Colour: SILVER
TOL10181
29435421
<?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 274 899
5 329km
2026
AUTOMATICMANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10175_n0000074_12.jpg
MG
MG3 1.5 COMFORT A/T
(2025)

MG

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
LSJWP4U60SZ109308
LSJWP4U60SZ109308
Colour: SILVER
TOL10175
29434703
<?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 309 890
16km
2025
AUTOMATICMANUAL
More details