<?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.8 GD-6 LEGEND RS 4X4 6AT MHEV D C
R 1 046 385
Range:
HILUX
Year:
2025
Mileage:
17 500 km
Colour:
Glacier White (040)
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28880265
Available from NMI Toyota Stellenbosch
<?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 Stellenbosch
NMI Toyota Stellenbosch, 99 Bird St, La Colline, Stellenbosch, 7600, South Africa
Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070810_14.jpg
TOYOTA
HILUX
(2018)
TOYOTA 2.4 GD-6 D/CAB RB SRX
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB8DD204755088
AHTJB8DD204755088
Colour: SILVER
MOL01645
28878621
28878621
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/mol01645_ud0050092_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_ud0050092_10.jpg
TOYOTA
HILUX
(2026)
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); ?>
AHTJB3DB204354948
AHTJB3DB204354948
Colour: Glacier White (040)
MOL01645
28878688
28878688
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/mol01645_u0070672_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070672_13.jpg
TOYOTA
HILUX
(2023)
TOYOTA 2.8 GD-6 4X4 LEGEND AT DC
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTBA3CD606246301
AHTBA3CD606246301
Colour: Glacier White (040)
MOL01645
28880269
28880269
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");
}
}
?>



















