<?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,
            }
        }
    });
});

Toyota 2.4GD-6 single cab SR

R 507 899
Range:
Hilux
Year:
2026
Mileage:
4 799 km
Colour:
Glacier White (040)
Transmission:
Manual
Fuel:
diesel
Vehicle ID:
2443
Available from NMI Toyota Middelburg
<?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://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/01.jpg?v=20260815193709, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/02.jpg?v=20260815193709, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/03.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/04.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/05.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/06.jpg?v=20260815193710, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/07.jpg?v=20260815193711, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/08.jpg?v=20260815193711, https://ststockprodsanorth001.blob.core.windows.net/stockimages/3884/09.jpg?v=20260815193711
Toyota
Hilux
(2025)

Toyota 2.4GD single cab S (aircon)

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTCB8CB704158401
AHTCB8CB704158401
Colour: White
MOL01643
3884

Enquire

Contact Form - Satellite
<?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 419 899
6449km
2025
Manual
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2434/01.jpg?v=20260816172646, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2434/02.jpg?v=20260816172646, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2434/03.jpg?v=20260816172646
Toyota
Hilux
(2026)

Toyota 2.4GD-6 single cab SR

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTJB3DB204354643
AHTJB3DB204354643
Colour: Glacier White (040)
MOL01643
2434

Enquire

Contact Form - Satellite
<?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 494 900
12352km
2026
Manual
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2423/01.jpg?v=20260816172846, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2423/02.jpg?v=20260816172847, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2423/03.jpg?v=20260816172847, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2423/04.jpg?v=20260816172847, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2423/05.jpg?v=20260816172847, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2423/06.jpg?v=20260816172848
Toyota
Hilux
(2025)

Toyota 2.4GD-6 single cab 4×4 SR

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKB3CB602384391
AHTKB3CB602384391
Colour: Glacier White (040)
MOL01643
2423

Enquire

Contact Form - Satellite
<?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 509 899
31707km
2025
Manual
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/01.jpg?v=20260816172925, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/02.jpg?v=20260816172925, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/03.jpg?v=20260816172925, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/04.jpg?v=20260816172926, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/05.jpg?v=20260816172926, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/06.jpg?v=20260816172926, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2427/07.jpg?v=20260816172926
Toyota
Hilux
(2026)

Toyota 2.4GD-6 single cab 4×4 SR

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKB3CB202384596
AHTKB3CB202384596
Colour: Glacier White (040)
MOL01643
2427

Enquire

Contact Form - Satellite
<?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 519 900
17735km
2026
Manual
More details