<?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,
}
}
});
});
TOYOTA 1.8 Xs
R 379 950
Range:
COROLLA
Year:
2025
Mileage:
23 000 km
Colour:
Glacier White (
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
28584893
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/mol01651_u23185_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23185_12.jpg
TOYOTA
COROLLA
(2024)
TOYOTA 1.8
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTBF8JE701029511
AHTBF8JE701029511
Colour: Silver
MOL01651
28584839
28584839
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/mol01651_u23076_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23076_13.jpg
TOYOTA
COROLLA
(2022)
TOYOTA 1.8 Xs HYBRID
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKDAAG700800800
AHTKDAAG700800800
Colour: Crimson Spark R
MOL01651
28584619
28584619
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/mol01651_u23078_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23078_10.jpg
TOYOTA
COROLLA
(2024)
TOYOTA 1.8 Xr
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKFBAG000641019
AHTKFBAG000641019
Colour: Glacier White (
MOL01651
28584620
28584620
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/mol01651_u22876_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22876_9.jpg
TOYOTA
COROLLA
(2025)
TOYOTA 1.8 Xs
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKFAAG700650956
AHTKFAAG700650956
Colour: Glacier White
MOL01651
28584892
28584892
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");
}
}
?>









