<?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,
}
}
});
});
FORD 2.0 BiT SPORT 4X2 AT
R 769 800
Range:
EVEREST
Year:
2023
Mileage:
21 488 km
Colour:
Blue
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28659347
Available from NMI Ford Tygervalley
<?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 Tygervalley
NMI Ford Tygervalley, Durban Road & Raglan St, Oakdale, Cape Town, 7530, South Africa
Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050188_12.jpg
FORD
EVEREST
(2025)
FORD 2.0 XLT BiT 4X2 AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MNBRXXMAWRRY78670
MNBRXXMAWRRY78670
Colour: ABSOLUTE BLACK
TOL10019
28659922
28659922
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/tol10019_ud0050185_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050185_12.jpg
FORD
EVEREST
(2025)
FORD 3.0 V6 WILDTRAK 4WD AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MNBRXXMAWRRE63135
MNBRXXMAWRRE63135
Colour: METEOR GREY
TOL10019
28659920
28659920
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/tol10019_u0071538_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_u0071538_14.jpg
FORD
EVEREST
(2025)
FORD 3.0 PLATINUM AWD AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
MNBRXXMAWRRE62956
MNBRXXMAWRRE62956
Colour: SILVER
TOL10019
28659334
28659334
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");
}
}
?>
