<?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,
}
}
});
});
VOLKSWAGEN MY25 1.4 TSI R-LINE DSG
R 709 900
Range:
TIGUAN
Year:
2025
Mileage:
21 290 km
Colour:
SILVER
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
29222875
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/tol00005_u0070842_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070842_14.jpg
VOLKSWAGEN
TIGUAN
(2015)
VOLKSWAGEN 2.0 TDI BMT TREND + FUN 4X2
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
WVGZZZ5NZEW105488
WVGZZZ5NZEW105488
Colour: WHITE
TOL00005
29223303
29223303
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/tol00005_u0070718_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070718_15.jpg
VOLKSWAGEN
TIGUAN
(2018)
VOLKSWAGEN MY17 2.0 TFSI HIGHLINE 4MOTION DSG
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
WVGZZZ5NZJW858824
WVGZZZ5NZJW858824
Colour: GREY
TOL00005
29222405
29222405
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/mol01644_u0070287_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01644_u0070287_8.jpg
VOLKSWAGEN
TIGUAN
(2018)
VOLKSWAGEN ALLSPACE 2.0 TSI 4MOTION COMFORTLINE
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
WVGZZZ5NZKM119396
WVGZZZ5NZKM119396
Colour: Silver
MOL01644
29223419
29223419
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/mol01640_u0070822_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070822_9.jpg
VOLKSWAGEN
TIGUAN
(2023)
VOLKSWAGEN MY21 1.4 TSI DSG
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
WVGZZZ5N4PW037061
WVGZZZ5N4PW037061
Colour: WHITE
MOL01640
29224229
29224229
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");
}
}
?>








