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

R 339 899
Range:
COROLLA
Year:
2024
Mileage:
53 191 km
Colour:
SILVER
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
29233686
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 - Satellite

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070984_14.jpg
TOYOTA
COROLLA
(2021)

TOYOTA 1.8 Xs

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKFAAG600602719
AHTKFAAG600602719
Colour: grey
MOL01645
29232129

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 309 900
75342km
2021
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0070884_14.jpg
TOYOTA
COROLLA
(2024)

TOYOTA 1.8 Xi

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

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 319 900
44143km
2024
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071028_13.jpg
TOYOTA
COROLLA
(2024)

TOYOTA 1.8 Xs

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKFAAG500643469
AHTKFAAG500643469
Colour: Silver ME (1D6)
MOL01645
29233685

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 339 899
47688km
2024
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01645_u0071047_13.jpg
TOYOTA
COROLLA
(2024)

TOYOTA 1.8 Xs

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
AHTKFAAG600646896
AHTKFAAG600646896
Colour: SilverME(1D6)
MOL01645
29232136

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 339 900
40988km
2024
AUTOMATIC
More details