<?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 Vitz (2025)
Toyota VITZ 1.0 XR AMT
R 199 890
Range:
Vitz
Year:
2025
Mileage:
20 364 km
Colour:
White
Transmission:
Automated Manual
Fuel:
petrol
Vehicle ID:
8586
Perfect Student Car
Available from NMI Ford Pietermaritzburg
<?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");
}
}
?>Finance Calculator
The finance calculator provides an estimate only. The final price to be calculated after consulting one of our sales staff.
Call Now
Available from Pietermaritzburg
NMI Ford Pieternaritzburg, Chatterton Road, Town Hill, Pietermaritzburg, KwaZulu-Natal, 3200, South Africa
Similar Listings
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_2_full.jpg?v=20261006134538, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_1_full.jpg?v=20261006134540, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_3_full.jpg?v=20261006134543, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_4_full.jpg?v=20261006134545, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_5_full.jpg?v=20261006134547, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_6_full.jpg?v=20261006134549, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_7_full.jpg?v=20261006134552, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_8_full.jpg?v=20261006134554, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_9_full.jpg?v=20261006134556, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_10_full.jpg?v=20261006134558, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_11_full.jpg?v=20261006134600, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_12_full.jpg?v=20261006134602, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_13_full.jpg?v=20261006134604, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341483_14_full.jpg?v=20261006134606
Toyota
Vitz
(2025)
Toyota VITZ 1.0 XR AMT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDVFN62S00341483
JTDVFN62S00341483
Colour: SILVER
MOL01630
8616
8616
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/stock-images/JTDVFN62S00341516_2_full.jpg?v=20261006134648, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_1_full.jpg?v=20261006134650, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_3_full.jpg?v=20261006134653, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_4_full.jpg?v=20261006134655, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_5_full.jpg?v=20261006134658, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_6_full.jpg?v=20261006134700, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_7_full.jpg?v=20261006134702, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_8_full.jpg?v=20261006134704, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_9_full.jpg?v=20261006134706, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_10_full.jpg?v=20261006134708, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_11_full.jpg?v=20261006134710, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_12_full.jpg?v=20261006134712, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_13_full.jpg?v=20261006134715, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341516_14_full.jpg?v=20261006134716
Toyota
Vitz
(2025)
Toyota VITZ 1.0 XR AMT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDVFN62S00341516
JTDVFN62S00341516
Colour: SILVER
MOL01630
8617
8617
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/stock-images/JTDVFN62S00341844_3_full.jpg?v=20261006130655, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_1_full.jpg?v=20261006130656, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_2_full.jpg?v=20261006130658, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_4_full.jpg?v=20261006130700, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_5_full.jpg?v=20261006130701, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_6_full.jpg?v=20261006130702, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_7_full.jpg?v=20261006130703, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_8_full.jpg?v=20261006130704, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_9_full.jpg?v=20261006130705, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_10_full.jpg?v=20261006130706, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTDVFN62S00341844_11_full.jpg?v=20261006130708
Toyota
Vitz
(2025)
Toyota VITZ 1.0 XR AMT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTDVFN62S00341844
JTDVFN62S00341844
Colour: WHITE
MOL01630
8618
8618
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");
}
}
?>









