<?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 274 899
Range:
MG3 1.5 COMFORT A/T
Year:
2026
Mileage:
5 329km
Colour:
SILVER
Transmission:
AUTOMATICMANUAL
Fuel:
DieselPtrol
Vehicle ID:
29435421
Additional Information:

Unbeatable Demo Offer

This demo vehicle is an excellent choice for anyone seeking reliability and style. Experience the perfect blend of comfort and practicality, designed for urban driving. Enjoy peace of mind with a vehicle that showcases superior engineering and modern features.

With its impressive condition, this vehicle is ready for immediate enjoyment. Don’t miss out on a fantastic opportunity to own a nearly new vehicle at a great price.

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

Key highlights:
– Demo condition
– Excellent reliability
– Modern features for convenience
– Stylish design
– Ideal for urban driving
– Immediate availability

Trust NMI for quality vehicles and outstanding service. Experience the difference with us.

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_ud0050032_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10181_ud0050032_11.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);
  ?>
LSJWP4U68SZ284339
LSJWP4U68SZ284339
Colour: WHITE
TOL10181
29434718
<?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 299 899
3 050km
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