Shop . Click . Drive
<?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,
            }
        }
    });
});
1
DEMO

TOYOTA 2.8 GD-6 RB RAIDER 6AT MHEV D CAB (2025)

R 719 900
Description
Mileage
507 km
Year
Fuel Type
DIESEL
Exterior Colour
Glacier White (040)
Transmission
AUTOMATIC
VIN
Vehicle ID
28238107
Features
Range
HILUX
Mileage
507 km
Year
2025
Colour
Glacier White (040)
Transmission
AUTOMATIC
Fuel
DIESEL
Body Type
DOUBLE CAB
Doors
4
Service History
Vin No.
AHTAE3DD001741363
Comments

Finance Calculator

Car Loan Calculator with balloon
%
Years
%

Estimated Payment

R/month

Car Price

R

Principal
R
Car Loan Calculator with balloon
%
Years
%

Estimated Payment

R/month

Car Price

R

Principal
R
Contact Person
Contact Email
<?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");
        }
    }
?>
Back to search results
R 719 900
MSRP
Vehicle Enquiry
Back to search results
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071340_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071340_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071340_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071340_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071340_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071340_6.jpg
R 248 999
TOYOTA
HILUX
(2018)

TOYOTA 2.0 VVTi A/C

USED
2018
193 279 km
MANUAL
UNLEADED
White
R 248 999
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol00005_u0070086_13.jpg
R 249 899
TOYOTA
HILUX
(2010)

TOYOTA 3.0 D-4D D/CAB 4X4 RAIDER

USED
2010
191 000 km
MANUAL
DIESEL
WHITE
R 249 899
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01640_u0070382_10.jpg
R 319 900
TOYOTA
HILUX
(2024)

TOYOTA 2.0 VVTi S 5MT

USED
2024
34 016 km
MANUAL
UNLEADED
Glacier White (040)
R 319 900
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10127_u502137_10.jpg
R 339 900
TOYOTA
HILUX
(2024)

TOYOTA 2.0 VVTi S AC 5MT

USED
2024
10 000 km
MANUAL
UNLEADED
White
R 339 900