<?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 SiT D CAB XL 4X2 6AT
R 599 900
Range:
RANGER
Year:
2025
Mileage:
8 500 km
Colour:
FROZEN WHITE
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
29065881
Available from NMI Ford N1 City
<?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");
}
}
?>Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071633_14.jpg
FORD
RANGER
(2023)
FORD 2.0 SiT D CAB XL 4X2
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAPXXMJ2PPD17912
AFAPXXMJ2PPD17912
Colour: WHITE
MOL01633
29067332
29067332
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/mol01633_u0071612_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071612_13.jpg
FORD
RANGER
(2025)
FORD 2.0 SiT D CAB XL 4X2 6AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAPXXMJ2PSR59146
AFAPXXMJ2PSR59146
Colour: FROZEN WHITE
MOL01633
29067282
29067282
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/mol01633_u0071574_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071574_20.jpg
FORD
RANGER
(2024)
FORD 2.0 SiT D CAB XLT 4X2 6AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAPXXMJ2PRY67023
AFAPXXMJ2PRY67023
Colour: BLACK
MOL01633
29067274
29067274
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/mol01633_u0071506_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01633_u0071506_19.jpg
FORD
RANGER
(2025)
FORD 2.0 SiT D CAB XL 4X2 6AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAPXXMJ2PSM28308
AFAPXXMJ2PSM28308
Colour: FROZEN WHITE
MOL01633
29067268
29067268
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");
}
}
?>
