<?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 2.4 GD-6 RB RAIDER 6AT XC
R 539 950
Range:
HILUX
Year:
2025
Mileage:
9 784 km
Colour:
silver
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28920640
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_ud0050003_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050003_10.jpg
TOYOTA
HILUX
(2025)
TOYOTA 2.4 GD-6 RB SR 6MT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DB404353509
AHTJB3DB404353509
Colour: Glacier White (040)
MOL01651
28920596
28920596
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_ud0050007_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050007_14.jpg
TOYOTA
HILUX
(2025)
TOYOTA 2.4 GD-6 RB RAIDER 6MT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DB004354317
AHTJB3DB004354317
Colour: Glacier White
MOL01651
28920599
28920599
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_u23113_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23113_11.jpg
TOYOTA
HILUX
(2025)
TOYOTA 2.4 GD-6 4X4 SR 6MT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKB3CB502384799
AHTKB3CB502384799
Colour: Glacier White
MOL01651
28922103
28922103
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_ud0050023_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_ud0050023_10.jpg
TOYOTA
HILUX
(2026)
TOYOTA 2.4 GD-6 4X4 SR 6MT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKB3CB202384808
AHTKB3CB202384808
Colour: Glacier White
MOL01651
28920604
28920604
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");
}
}
?>












