<?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 RAV4 2.0 GX CVT
R 239 899
Range:
RAV4
Year:
2021
Mileage:
272 242 km
Colour:
WHITE
Transmission:
Cvt
Fuel:
petrol
Vehicle ID:
10496
Available from NMI Toyota Menlyn
Call Now
Available from Menlyn
NMI Toyota Menlyn, 125 Dallas Ave, Waterkloof Glen, Pretoria, 0010, South Africa
Similar Listings
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_3_full.jpg?v=20261028152013, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_1_full.jpg?v=20261028152015, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_2_full.jpg?v=20261028152017, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_4_full.jpg?v=20261028152019, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_5_full.jpg?v=20261028152021, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_6_full.jpg?v=20261028152022, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_7_full.jpg?v=20261028152024, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_8_full.jpg?v=20261028152026, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_9_full.jpg?v=20261028152028, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_13_full.jpg?v=20261028152038, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_14_full.jpg?v=20261028152040, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_15_full.jpg?v=20261028152042, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_16_full.jpg?v=20261028152044, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_17_full.jpg?v=20261028152046, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_18_full.jpg?v=20261028152047, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTMDW3FV60D597085_19_full.jpg?v=20261028152049
Toyota
RAV4
(2025)
Toyota RAV4 2.5 VX HYBRID CVT E-FOUR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTMDW3FV60D597085
JTMDW3FV60D597085
Colour: WHITE
TOL00005
10429
10429
Enquire
<?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");
}
}
?>
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_1_full.jpg?v=20260816175150, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_2_full.jpg?v=20260816175150, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_3_full.jpg?v=20260816175150, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_4_full.jpg?v=20260816175151, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_5_full.jpg?v=20260816175151, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_6_full.jpg?v=20260816175151, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_7_full.jpg?v=20260816175151, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV10D309963_8_full.jpg?v=20260816175152
Toyota
RAV4
(2026)
Toyota RAV4 2.5 GX-R HYBRID CVT E-FOUR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTM5C3AV10D309963
JTM5C3AV10D309963
Colour: Massive Grey/Smokey Blue
TOL00005
3180
3180
Enquire
<?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");
}
}
?>
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_1_full.jpg?v=20260816175511, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_2_full.jpg?v=20260816175511, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_3_full.jpg?v=20260816175511, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_4_full.jpg?v=20260816175511, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_5_full.jpg?v=20260816175512, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_6_full.jpg?v=20260816175512, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_7_full.jpg?v=20260816175512, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV70D316092_8_full.jpg?v=20260816175512
Toyota
RAV4
(2026)
Toyota RAV4 2.5 GX-R HYBRID CVT E-FOUR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTM5C3AV70D316092
JTM5C3AV70D316092
Colour: Massive Grey/Smokey Blue
TOL00005
3030
3030
Enquire
<?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");
}
}
?>
https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_1_full.jpg?v=20260815194839, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_2_full.jpg?v=20260815194839, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_3_full.jpg?v=20260815194839, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_4_full.jpg?v=20260815194840, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_5_full.jpg?v=20260815194840, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_6_full.jpg?v=20260815194840, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_7_full.jpg?v=20260815194840, https://ststockprodsanorth001.blob.core.windows.net/stock-images/JTM5C3AV30D315781_8_full.jpg?v=20260815194841
Toyota
RAV4
(2026)
Toyota RAV4 2.5 GX-R HYBRID CVT E-FOUR
<?php $post_id = get_the_id(); $post_meta = get_post_meta($post_id); echo print_r($post_meta); ?>
JTM5C3AV30D315781
JTM5C3AV30D315781
Colour: Massive Grey/Smokey Blue
TOL00005
3029
3029
Enquire
<?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");
}
}
?>



















