<?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 SR 6MT
R 439 950
Range:
HILUX
Year:
2025
Mileage:
18 000 km
Colour:
Glacier White
Transmission:
MANUAL
Fuel:
DIESEL
Vehicle ID:
28744678
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_u23203_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23203_11.jpg
TOYOTA
HILUX
(2021)
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); ?>
AHTJB3DB704342097
AHTJB3DB704342097
Colour: Glacier White (
MOL01651
28744624
28744624
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_u22412_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22412_8.jpg
TOYOTA
HILUX
(2023)
TOYOTA 2.4 GD-6 RB RAIDER 6AT XC
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DC504496686
AHTJB3DC504496686
Colour: Glacier White (
MOL01651
28744623
28744623
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_u23002_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23002_15.jpg
TOYOTA
HILUX
(2024)
TOYOTA 2.4 GD-6 RB RAIDER 6AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DB304350049
AHTJB3DB304350049
Colour: White
MOL01651
28744457
28744457
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_u23211_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23211_11.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); ?>
AHTJB3DB104354228
AHTJB3DB104354228
Colour: White
MOL01651
28743366
28743366
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");
}
}
?>










