<?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.2 TDCI XLS AT
R 279 890
Range:
EVEREST
Year:
2018
Mileage:
137 500 km
Colour:
SIAM BEIGE METALLIC
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28518444
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");
}
}
?>Call Now
Available from Pietermaritzburg
NMI Ford Pieternaritzburg, Chatterton Road, Town Hill, Pietermaritzburg, KwaZulu-Natal, 3200, South Africa
Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071002_15.jpg
FORD
EVEREST
(2021)
FORD 2.2 TDCI XLS 4X2 AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAJXXMJWJLS50937
AFAJXXMJWJLS50937
Colour: White
MOL01627
28516834
28516834
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/mol01627_u0071028_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071028_15.jpg
FORD
EVEREST
(2021)
FORD 2.0 Bi TURBO LTD 4X4 AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAJXXMJWJLL26356
AFAJXXMJWJLL26356
Colour: SILVER
MOL01627
28518441
28518441
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/mol01627_u0071105_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0071105_15.jpg
FORD
EVEREST
(2021)
FORD 2.0 Bi TURBO LTD 4X4 AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAJXXMJWJMK44474
AFAJXXMJWJMK44474
Colour: GREY
MOL01627
28516852
28516852
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/mol01627_u0070949_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01627_u0070949_13.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); ?>
MNBRXXMAWRRL69556
MNBRXXMAWRRL69556
Colour: ALUMINIUM SILVER
MOL01627
28518388
28518388
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");
}
}
?>
