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

R 199 899
Range:
RAV4
Year:
2014
Mileage:
195 237 km
Colour:
WHITE
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
28668949
Available from NMI Toyota Menlyn
<?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");
        }
    }
?>

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01643_u24869_7.jpg
TOYOTA
RAV4
(2010)

TOYOTA 2.2 D-4D VX 4X4

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMBA31V00D028391
JTMBA31V00D028391
Colour: Silver Metallic
MOL01643
28669834

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 843
177016km
2010
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070338_13.jpg
TOYOTA
RAV4
(2018)

TOYOTA 2.0 GX 4X2 CVT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMZD3EV80D102608
JTMZD3EV80D102608
Colour: Silver ME (1D6)
TOL00005
28668934

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 299 899
61000km
2018
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070659_11.jpg
TOYOTA
RAV4
(2021)

TOYOTA 2.0 GX 2WD CVT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMZ43FV00D077816
JTMZ43FV00D077816
Colour: White Pearl (CS) 070
MOL01640
28669812

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 429 900
45350km
2021
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01642_u0070464_12.jpg
TOYOTA
RAV4
(2024)

TOYOTA 2.0 GX-R AWD CVT

<?php
  
   $post_id = get_the_id();
$post_meta = get_post_meta($post_id);
  echo print_r($post_meta);
  ?>
JTMJ43FVX0J008968
JTMJ43FVX0J008968
Colour: UrbanKhaki6X3
MOL01642
28668580

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 539 900
47260km
2024
AUTOMATIC
More details