<?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 XLT 4X2 6AT
R 629 900
Range:
RANGER
Year:
2025
Mileage:
8 000 km
Colour:
ICONIC SILVER
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28624223
Available from NMI Ford Alberton
<?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/mol01634_ud0050242_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_ud0050242_19.jpg
FORD
RANGER
(2025)
FORD 2.0 SiT XL X CAB AT 4X2
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAGXXMJ2GSR64911
AFAGXXMJ2GSR64911
Colour: Carbonised Grey
MOL01634
28624225
28624225
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/mol01634_u0070903_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070903_16.jpg
FORD
RANGER
(2024)
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); ?>
AFAPXXMJ2PRS80333
AFAPXXMJ2PRS80333
Colour: FROZEN WHITE
MOL01634
28623789
28623789
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/mol01634_u0070928_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070928_25.jpg
FORD
RANGER
(2021)
FORD 2.0 BIT 4X2 D CAB WILDTRAK AT
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
AFAPXXMJ2PMD57354
AFAPXXMJ2PMD57354
Colour: White
MOL01634
28621961
28621961
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/mol01634_u0070901_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01634_u0070901_14.jpg
FORD
RANGER
(2024)
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); ?>
AFAPXXMJ2PRE41960
AFAPXXMJ2PRE41960
Colour: FROZEN WHITE
MOL01634
28623788
28623788
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");
}
}
?>
