<?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 Bi TURBO LTD 4X4 AT

R 559 800
Range:
EVEREST
Year:
2021
Mileage:
50 917 km
Colour:
SILVER
Transmission:
AUTOMATIC
Fuel:
DIESEL
Vehicle ID:
28431867
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");
        }
    }
?>
Sales Enquiry - Satellite

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_n0000881_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
28433006

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 819 800
6444km
2025
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10019_ud0050157_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
28433086

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 1 069 800
9371km
2025
AUTOMATIC
More details
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
28432769

Enquire

Sales Enquiry
<?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");
        }
    }
?>
R 1 189 800
5500km
2025
AUTOMATIC
More details