<?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.5 Xs AT
R 259 950
Range:
STARLET
Year:
2024
Mileage:
18 689 km
Colour:
Mystic Pearl White (ZHJ)
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
29256686
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_u0070210_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070210_12.jpg
TOYOTA
STARLET
(2021)
TOYOTA 1.4 Xs
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDGWC52S00730428
JTDGWC52S00730428
Colour: MysticPearlWhite(ZHJ
MOL01651
29255310
29255310
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_ud0050044_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050044_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050044_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050044_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050044_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050044_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050044_7.jpg
TOYOTA
STARLET
(2025)
TOYOTA 1.5 Xs
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDJWCA3S00A51295
JTDJWCA3S00A51295
Colour: Premium Silver
MOL01651
29256950
29256950
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_n0000045_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000045_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000045_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000045_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000045_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000045_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000045_7.jpg
TOYOTA
STARLET
(2025)
TOYOTA 1.5 Xi
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDJWCA3S00A87874
JTDJWCA3S00A87874
Colour: Luxe Red
MOL01651
29256956
29256956
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_n0000085_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_n0000085_12.jpg
TOYOTA
STARLET
(2026)
TOYOTA 1.5 Xi
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDJWCA3S00B70005
JTDJWCA3S00B70005
Colour: Premium Silver
MOL01651
29255266
29255266
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");
}
}
?>












