<?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.4GD-6 single cab 4×4 SR
R 509 899
Range:
Hilux
Year:
2025
Mileage:
31 707 km
Colour:
Glacier White (040)
Transmission:
Manual
Fuel:
diesel
Vehicle ID:
2423
Available from NMI Toyota Middelburg
<?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 Middelburg
NMI Toyota Middelburg, 31 Dolerite Cres, Middelburg, 1050, South Africa
Similar Listings
https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/01.jpg?v=20260815193709, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/02.jpg?v=20260815193709, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/03.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/04.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/05.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/06.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/07.jpg?v=20260815193711, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/08.jpg?v=20260815193711, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/09.jpg?v=20260815193711
Toyota
Hilux
(2025)
Toyota 2.4GD single cab S (aircon)
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTCB8CB704158401
AHTCB8CB704158401
Colour: White
MOL01643
3884
3884
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://ststockprodsanorth001.blob.core.windows.net/stockimages/2434/01.jpg?v=20260816172646, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2434/02.jpg?v=20260816172646, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2434/03.jpg?v=20260816172646
Toyota
Hilux
(2026)
Toyota 2.4GD-6 single cab SR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DB204354643
AHTJB3DB204354643
Colour: Glacier White (040)
MOL01643
2434
2434
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://ststockprodsanorth001.blob.core.windows.net/stockimages/2443/01.jpg?v=20260816172816, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2443/02.jpg?v=20260816172817, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2443/03.jpg?v=20260816172817
Toyota
Hilux
(2026)
Toyota 2.4GD-6 single cab SR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DB804356672
AHTJB3DB804356672
Colour: Glacier White (040)
MOL01643
2443
2443
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://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/01.jpg?v=20260816172925, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/02.jpg?v=20260816172925, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/03.jpg?v=20260816172925, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/04.jpg?v=20260816172926, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/05.jpg?v=20260816172926, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/06.jpg?v=20260816172926, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/07.jpg?v=20260816172926
Toyota
Hilux
(2026)
Toyota 2.4GD-6 single cab 4×4 SR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKB3CB202384596
AHTKB3CB202384596
Colour: Glacier White (040)
MOL01643
2427
2427
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");
}
}
?>






