<?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 (2026)
MG MG3 1.5 COMFORT
R 219 799
Range:
MG3
Year:
2026
Mileage:
3 050km
Colour:
SILVER
Transmission:
Manual
Fuel:
petrol
Vehicle ID:
4314
Additional Information:
Trade-Ins Welcome: We accept trade-in vehicles, making it easier for you to upgrade.
Nationwide Delivery: We can arrange delivery to anywhere in the country for your convenience.
Easy Financing: In-house finance options available.
Value-Added Products (Not included in the displayed vehicle price):
Safety Film (Smash & Grab)
Warranty Extension
Paint Protection
Maintenance Plan Extension
Cosmetic Plan (Scratch & Dent Repair)
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");
}
}
?>Call Now
Available from Tygervalley
NMI Ford Tygervalley, Cnr Durban Rd &, Raglan Street, Bellville, Cape Town, South Africa
Similar Listings
https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_1_full.jpg?v=20260815191206, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_2_full.jpg?v=20260815191206, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_3_full.jpg?v=20260815191207, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_4_full.jpg?v=20260815191207, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_5_full.jpg?v=20260815191207, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_6_full.jpg?v=20260815191207, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_7_full.jpg?v=20260815191208, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_8_full.jpg?v=20260815191208, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_9_full.jpg?v=20260815191208, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_10_full.jpg?v=20260815191208, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4U68SZ284339_11_full.jpg?v=20260815191209
MG
MG3
(2026)
MG MG3 1.5 COMFORT A/T
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
LSJWP4U68SZ284339
LSJWP4U68SZ284339
Colour: WHITE
TOL10181
4327
4327
Enquire
<?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");
}
}
?>
https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_1_full.jpg?v=20260815194214, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_2_full.jpg?v=20260815194215, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_3_full.jpg?v=20260815194215, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_4_full.jpg?v=20260815194216, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_5_full.jpg?v=20260815194216, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_6_full.jpg?v=20260815194216, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_7_full.jpg?v=20260815194216, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_8_full.jpg?v=20260815194217, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_9_full.jpg?v=20260815194217, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_10_full.jpg?v=20260815194217, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_11_full.jpg?v=20260815194217, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_12_full.jpg?v=20260815194218, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_13_full.jpg?v=20260815194218, https://ststockprodsanorth001.blob.core.windows.net/stock-images/LSJWP4398SZ106278_14_full.jpg?v=20260815194218
MG
MG3
(2026)
MG MG3 1.5 LUXURY HYBRID A/T
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
LSJWP4398SZ106278
LSJWP4398SZ106278
Colour: SILVER
TOL10181
4320
4320
Enquire
<?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");
}
}
?>







