<?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,
}
}
});
});
SUZUKI 1.2 GL MT
R 225 950
Range:
SWIFT
Year:
2025
Mileage:
8 622 km
Colour:
White
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
28686563
Available from NMI Toyota Witbank
<?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 Witbank
NMI Toyota Witbank, 111 OR Tambo Road, Witbank, eMalahleni, 1035, South Africa
Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070427_14.jpg
SUZUKI
SWIFT
(2022)
SUZUKI 1.2I GL AMT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MBHCZC63S00A60600
MBHCZC63S00A60600
Colour: WHITE
TOL00005
28685370
28685370
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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070136_8.jpg
SUZUKI
SWIFT
(2019)
SUZUKI 1.2 GLX AMT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MBHCZC63S00C91047
MBHCZC63S00C91047
Colour: GREY
MOL01644
28685158
28685158
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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070655_10.jpg
SUZUKI
SWIFT
(2025)
SUZUKI 1.2 GL+ CVT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MBHZCDESR00190286
MBHZCDESR00190286
Colour: SILVER
MOL01640
28684896
28684896
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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070417_12.jpg
SUZUKI
SWIFT
(2025)
SUZUKI 1.2 GL+ MT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MBHZCDESR00192623
MBHZCDESR00192623
Colour: White
MOL01642
28684970
28684970
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");
}
}
?>











