<?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.0 GX-R AWD

R 459 885
Range:
RAV4
Year:
2022
Mileage:
141 830 km
Colour:
green
Transmission:
Fuel:
Vehicle ID:
4983
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 - Pre-Owned Forms

Similar Listings 

https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_2_full.jpg?v=20260827145604, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_1_full.jpg?v=20260827145606, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_3_full.jpg?v=20260827145608, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_4_full.jpg?v=20260827145610, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_5_full.jpg?v=20260827145612, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_6_full.jpg?v=20260827145615, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_7_full.jpg?v=20260827145617, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_8_full.jpg?v=20260827145619, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_9_full.jpg?v=20260827145621, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_10_full.jpg?v=20260827145623, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_11_full.jpg?v=20260827145625, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_12_full.jpg?v=20260827145627, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_13_full.jpg?v=20260827145629, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_14_full.jpg?v=20260827145631, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV60D045521_15_full.jpg?v=20260827145633
Toyota
RAV4
(2015)

Toyota 2.0 GX auto

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMZD3EV60D045521
JTMZD3EV60D045521
Colour: WHITE
TOL00005
5437

Enquire

Contact Form
<?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 239 899
123000km
2015
More details
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_3_full.jpg?v=20260821150042, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_1_full.jpg?v=20260821150044, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_2_full.jpg?v=20260821150046, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_4_full.jpg?v=20260821150048, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_5_full.jpg?v=20260821150049, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_6_full.jpg?v=20260821150051, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_7_full.jpg?v=20260821150053, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_8_full.jpg?v=20260821150055, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_9_full.jpg?v=20260821150057, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_10_full.jpg?v=20260821150058, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_11_full.jpg?v=20260821150100, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_12_full.jpg?v=20260821150102, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_13_full.jpg?v=20260821150103, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_14_full.jpg?v=20260821150105, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_15_full.jpg?v=20260821150107, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_16_full.jpg?v=20260821150109, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_17_full.jpg?v=20260821150111, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_18_full.jpg?v=20260821150112, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMZD3EV40J176593_19_full.jpg?v=20260821150114
Toyota
RAV4
(2019)

Toyota RAV4 2.0 GX A/T

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMZD3EV40J176593
JTMZD3EV40J176593
Colour: WHITE
TOL00005
3246

Enquire

Contact Form
<?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 289 899
75201km
2019
More details
https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/01.jpg?v=20260816165621, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/02.jpg?v=20260816165622, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/03.jpg?v=20260816165622, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/04.jpg?v=20260816165622, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/05.jpg?v=20260816165622, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/06.jpg?v=20260816165623, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/07.jpg?v=20260816165623, https://ststockprodsanorth001.blob.core.windows.net/stockimages/2689/08.jpg?v=20260816165623
Toyota
RAV4
(2022)

Toyota RAV4 2.0 VX CVT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMY43FV30D120900
JTMY43FV30D120900
Colour: Glacier White (040)
MOL01644
2689

Enquire

Contact Form
<?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 435 649
102962km
2022
Cvt
More details
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_11_full.jpg?v=20260831155442, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_1_full.jpg?v=20260831155443, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_2_full.jpg?v=20260831155444, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_3_full.jpg?v=20260831155444, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_4_full.jpg?v=20260831155446, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_5_full.jpg?v=20260831155447, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_6_full.jpg?v=20260831155448, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_7_full.jpg?v=20260831155449, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_8_full.jpg?v=20260831155451, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_9_full.jpg?v=20260831155452, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_10_full.jpg?v=20260831155453, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMD13FVX0D090513_12_full.jpg?v=20260831155454
Toyota
RAV4
(2022)

Toyota 2.5 VX AWD

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMD13FVX0D090513
JTMD13FVX0D090513
Colour: GREY
MOL01640
4592

Enquire

Contact Form
<?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 439 900
105056km
2022
More details