<?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

R 259 950
Range:
STARLET
Year:
2024
Mileage:
27 408 km
Colour:
Dark Indigo Blu
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
28878964
Available from NMI Toyota Witbank
<?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/mol01651_u23214_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23214_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23214_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23214_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23214_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23214_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u23214_7.jpg
TOYOTA
STARLET
(2022)

TOYOTA 1.5 Xs

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDJWCA3S00206918
JTDJWCA3S00206918
Colour: White
MOL01651
28878962

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 219 950
99438km
2022
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u22708_10.jpg
TOYOTA
STARLET
(2025)

TOYOTA 1.5 XR

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDJWCA3S00533784
JTDJWCA3S00533784
Colour: Champagne
MOL01651
28878963

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 249 950
52196km
2025
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070010_13.jpg
TOYOTA
STARLET
(2024)

TOYOTA 1.5 XR AT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDJWCA3S00820589
JTDJWCA3S00820589
Colour: Mystic Pearl Wh
MOL01651
28878965

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 279 950
21282km
2024
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_20.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_22.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_23.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_24.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01651_u0070006_26.jpg
TOYOTA
STARLET
(2024)

TOYOTA 1.5 XR AT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTDJWCA3S00848047
JTDJWCA3S00848047
Colour: White
MOL01651
28878966

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 279 950
11165km
2024
AUTOMATIC
More details