<?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 X/CAB 4X4 RAIDER
R 329 900
Range:
HILUX
Year:
2020
Mileage:
304 201 km
Colour:
Glacier White (040)
Transmission:
MANUAL
Fuel:
DIESEL
Vehicle ID:
29358506
Available from NMI Toyota Centurion
<?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 Centurion
NMI Toyota Centurion, 1301 South St, Zwartkop, Centurion, 0051, South Africa
Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071067_10.jpg
TOYOTA
HILUX
(2019)
TOYOTA 2.4 GD-6 X/CAB RB SRX AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB8DC204728187
AHTJB8DC204728187
Colour: WHITE
MOL01640
29358243
29358243
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/mol01642_ud0050032_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_ud0050032_16.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); ?>
AHTJB3DB504352885
AHTJB3DB504352885
Colour: Glacier White (040)
MOL01642
29358089
29358089
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/tol10127_ud0050019_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_ud0050019_9.jpg
TOYOTA
HILUX
(2026)
TOYOTA 2.4 GD S AC 5MT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTCB8CB704162853
AHTCB8CB704162853
Colour: Glacier White
TOL10127
29358617
29358617
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/mol01643_u0070262_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u0070262_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u0070262_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u0070262_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u0070262_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u0070262_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u0070262_7.jpg
TOYOTA
HILUX
(2022)
TOYOTA 2.4 GD-6 RB RAIDER 6MT XC
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTJB3DC504494601
AHTJB3DC504494601
Colour: Glacier White (040)
MOL01643
29356697
29356697
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");
}
}
?>








