<?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 1.8 Xs
R 339 900
Range:
COROLLA
Year:
2024
Mileage:
49 637 km
Colour:
White
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
29340115
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_u0071141_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071141_13.jpg
TOYOTA
COROLLA
(2016)
TOYOTA 1.6
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTLB52E203111261
AHTLB52E203111261
Colour: silver
MOL01645
29340120
29340120
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_u0071147_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071147_14.jpg
TOYOTA
COROLLA
(2024)
TOYOTA 1.8
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTBF8JE301026850
AHTBF8JE301026850
Colour: White
MOL01645
29340122
29340122
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_u0070984_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_14.jpg
TOYOTA
COROLLA
(2021)
TOYOTA 1.8 Xs
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKFAAG600602719
AHTKFAAG600602719
Colour: Celestite Grey ME (1K3)
MOL01645
29341668
29341668
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_u0071072_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071072_13.jpg
TOYOTA
COROLLA
(2024)
TOYOTA 1.8 Xs
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AHTKFAAG200645907
AHTKFAAG200645907
Colour: SILVER
MOL01645
29340112
29340112
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");
}
}
?>













