<?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.8 Xi

R 365 900
Range:
Corolla Cross
Year:
2026
Mileage:
14 900 km
Colour:
Glacier White (
Transmission:
Cvt
Fuel:
petrol
Vehicle ID:
2426
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/2437/01.jpg?v=20260815193829, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2437/02.jpg?v=20260815193829, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2437/03.jpg?v=20260815193829, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2437/04.jpg?v=20260815193830, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2437/05.jpg?v=20260815193830, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2437/06.jpg?v=20260815193830, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2437/07.jpg?v=20260815193831
Toyota
Corolla Cross
(2026)

Toyota 1.8 Xi

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKFAAG600668669
AHTKFAAG600668669
Colour: Platinum White Pearl(089)
MOL01643
2437

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 394 899
5450km
2026
Cvt
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/01.jpg?v=20260815193911, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/02.jpg?v=20260815193911, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/03.jpg?v=20260815193911, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/04.jpg?v=20260815193912, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/05.jpg?v=20260815193912, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/06.jpg?v=20260815193912, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/07.jpg?v=20260815193912, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2432/08.jpg?v=20260815193913
Toyota
Corolla Cross
(2026)

Toyota 1.8 XS

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKFAAG400668301
AHTKFAAG400668301
Colour: Platiunum White Pearl
MOL01643
2432

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 399 900
6000km
2026
Cvt
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/01.jpg?v=20260815194231, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/02.jpg?v=20260815194232, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/03.jpg?v=20260815194232, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/04.jpg?v=20260815194232, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/05.jpg?v=20260815194232, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/06.jpg?v=20260815194233, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/07.jpg?v=20260815194233, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2425/08.jpg?v=20260815194233
Toyota
Corolla Cross
(2026)

Toyota 1.8 HEV XS

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKDAAG800963455
AHTKDAAG800963455
Colour: Brass Gold (5C2)
MOL01643
2425

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
9350km
2026
Cvt
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/01.jpg?v=20260815194707, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/02.jpg?v=20260815194708, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/03.jpg?v=20260815194708, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/04.jpg?v=20260815194708, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/05.jpg?v=20260815194708, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/06.jpg?v=20260815194709, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2430/07.jpg?v=20260815194709
Toyota
Corolla Cross
(2026)

Toyota 1.8 XR

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKFBAGX00668129
AHTKFBAGX00668129
Colour: Platinum White Pearl(089)
MOL01643
2430

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 449 900
11583km
2026
Cvt
More details