<?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 339 899
Range:
MG3 1.5 LUX A/T
Year:
2026
Mileage:
3 050km
Colour:
GREY
Transmission:
AUTOMATICMANUAL
Fuel:
DieselPtrol
Vehicle ID:
29236036
Additional Information:

Exceptional Demo Vehicle Ready for You

Experience the latest in automotive excellence with this demo vehicle. Designed with your convenience in mind, it offers easy financing options and the possibility to trade in your current vehicle, making your upgrade seamless. Enjoy the freedom of nationwide delivery, ensuring you can get behind the wheel without hassle.

This vehicle is not just about performance; it comes with a range of value-added products for enhanced peace of mind. Consider options like a warranty extension, paint protection, and maintenance plan extension to keep your investment secure.

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

Key highlights:
– Trade-ins welcome for an easy upgrade
– Nationwide delivery available
– In-house financing options
– Safety film for added protection
– Warranty extension available
– Paint protection options
– Maintenance plan extension
– Cosmetic plan for scratch and dent repair

Trust in NMI to provide quality vehicles and exceptional service. Experience the difference today.

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/tol10176_u500128_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10176_u500128_14.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);
  ?>
LSJWP4U66SZ109474
LSJWP4U66SZ109474
Colour: Red
TOL10176
29236798
<?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 319 950
1 500km
2026
AUTOMATICMANUAL
More details