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

R 269 900
Range:
COROLLA
Year:
2023
Mileage:
59 655 km
Colour:
white
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
29497805
Available from NMI Toyota Stellenbosch
<?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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071262_14.jpg
TOYOTA
COROLLA
(2024)

TOYOTA 1.8

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTBF8JE401026856
AHTBF8JE401026856
Colour: GlacierWhite(040)
MOL01645
29497806

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 224 899
112284km
2024
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071264_14.jpg
TOYOTA
COROLLA
(2024)

TOYOTA 1.8

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTBF8JE601026535
AHTBF8JE601026535
Colour: GlacierWhite(040)
MOL01645
29495815

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 224 899
109333km
2024
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071263_14.jpg
TOYOTA
COROLLA
(2024)

TOYOTA 1.8

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTBF8JE501026851
AHTBF8JE501026851
Colour: GlacierWhite(040)
MOL01645
29495814

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 229 900
68882km
2024
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0071298_11.jpg
TOYOTA
COROLLA
(2018)

TOYOTA 1.8 EXCLUSIVE CVT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTBF3JE500012022
AHTBF3JE500012022
Colour: WHITE
MOL01640
29495514

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 900
48087km
2018
AUTOMATIC
More details