<?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 1.5 XR manual

R 360 199
Range:
Urban Cruiser
Year:
2026
Mileage:
8 900 km
Colour:
Mystic Pearl White (ZHJ)
Transmission:
Manual
Fuel:
petrol
Vehicle ID:
2441
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/2450/01.jpg?v=20260815192824, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2450/02.jpg?v=20260815192824, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2450/03.jpg?v=20260815192825, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2450/04.jpg?v=20260815192825, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2450/05.jpg?v=20260815192825, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2450/06.jpg?v=20260815192825, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2450/07.jpg?v=20260815192826
Toyota
Urban Cruiser
(2026)

Toyota 1.5 XR manual

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDUYMJ1S00129911
JTDUYMJ1S00129911
Colour: Mystic Pearl White (ZHJ)
MOL01643
2450

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 349 900
4711km
2026
Manual
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/01.jpg?v=20260815193152, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/02.jpg?v=20260815193153, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/03.jpg?v=20260815193153, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/04.jpg?v=20260815193153, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/05.jpg?v=20260815193153, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/06.jpg?v=20260815193154, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2445/07.jpg?v=20260815193154
Toyota
Urban Cruiser
(2026)

Toyota 1.5 XR auto

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDUYMJ1S00128751
JTDUYMJ1S00128751
Colour: Mystic Pearl White (ZHJ)
MOL01643
2445

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 362 900
7731km
2026
Automatic
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/01.jpg?v=20260815193155, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/02.jpg?v=20260815193155, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/03.jpg?v=20260815193156, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/04.jpg?v=20260815193156, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/05.jpg?v=20260815193156, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/06.jpg?v=20260815193156, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2451/07.jpg?v=20260815193157
Toyota
Urban Cruiser
(2026)

Toyota 1.5 XR auto

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDUYMJ1S00128488
JTDUYMJ1S00128488
Colour: Mystic Pearl White (ZHJ)
MOL01643
2451

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 365 900
1600km
2026
Automatic
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/01.jpg?v=20260815193347, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/02.jpg?v=20260815193347, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/03.jpg?v=20260815193348, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/04.jpg?v=20260815193348, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/05.jpg?v=20260815193348, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/06.jpg?v=20260815193348, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2449/07.jpg?v=20260815193349
Toyota
Urban Cruiser
(2026)

Toyota 1.5 XR auto

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDUYMJ1S00130248
JTDUYMJ1S00130248
Colour: Premium Silver
MOL01643
2449

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 373 799
4967km
2026
Automatic
More details