<?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,
            }
        }
    });
});
VOLKSWAGEN POLO (2016)

VOLKSWAGEN 1.4 TDI HIGHLINE

R 189 950
Range:
POLO
Year:
2016
Mileage:
155 603km
Colour:
PURE WHITE
Transmission:
MANUAL
Fuel:
DIESEL
Vehicle ID:
28461539
Available from Barons Pietermaritzburg
<?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

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_12.jpg
VOLKSWAGEN
POLO
(2025)

VOLKSWAGEN VIVO HATCH MY25 1.4

Array ( [vehicleid] => Array ( [0] => 28461482 ) [dumpdate] => Array ( [0] => 2025-10-24T16:52:15.893 ) [mmcode] => Array ( [0] => 64020701 ) [molstockbooknumber] => Array ( [0] => MOL01339_U0070748 ) [stockbooknumber] => Array ( [0] => U0070748 ) [vinnumber] => Array ( [0] => AAVZZZ6RXSU017395 ) [regnumber] => Array ( [0] => CN96YXZN ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 ) [vehicleyear] => Array ( [0] => 2025 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => REEF BLUE METALLIC ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 7200 ) [servicehistory] => Array ( [0] => ) [comments] => Array ( [0] => ) [price] => Array ( [0] => 244950 ) [dealershipid] => Array ( [0] => 36 ) [molnumber] => Array ( [0] => MOL01339 ) [dealershipname] => Array ( [0] => Barons Pietermaritzburg ) [pictures] => Array ( [0] => a:12:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_10.jpg";i:10;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_11.jpg";i:11;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050183_12.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6RXSU017395 ) ) 1
AAVZZZ6RXSU017395
AAVZZZ6RXSU017395
Colour: REEF BLUE METALLIC
MOL01339
28461482

Enquire

Sales Enquiry
<?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 244 950
7 200km
2025
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_10.jpg
VOLKSWAGEN
POLO
(2025)

VOLKSWAGEN VIVO HATCH MY25 1.4

Array ( [vehicleid] => Array ( [0] => 28456127 ) [dumpdate] => Array ( [0] => 2025-10-24T16:53:45.97 ) [mmcode] => Array ( [0] => 64020701 ) [molstockbooknumber] => Array ( [0] => MOL01339_UD0050223 ) [stockbooknumber] => Array ( [0] => UD0050223 ) [vinnumber] => Array ( [0] => AAVZZZ6R8SU017301 ) [regnumber] => Array ( [0] => CT33CBZN ) [uploadtype] => Array ( [0] => DEMO ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 ) [vehicleyear] => Array ( [0] => 2025 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => PURE WHITE ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 2000 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => ) [price] => Array ( [0] => 249950 ) [dealershipid] => Array ( [0] => 36 ) [molnumber] => Array ( [0] => MOL01339 ) [dealershipname] => Array ( [0] => Barons Pietermaritzburg ) [pictures] => Array ( [0] => a:10:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050223_10.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6R8SU017301 ) ) 1
AAVZZZ6R8SU017301
AAVZZZ6R8SU017301
Colour: PURE WHITE
MOL01339
28456127

Enquire

Sales Enquiry
<?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 249 950
2 000km
2025
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_9.jpg
VOLKSWAGEN
POLO
(2025)

VOLKSWAGEN VIVO HATCH MY25 1.4

Array ( [vehicleid] => Array ( [0] => 28460967 ) [dumpdate] => Array ( [0] => 2025-10-24T16:50:29.177 ) [mmcode] => Array ( [0] => 64020701 ) [molstockbooknumber] => Array ( [0] => MOL01339_UD0050237 ) [stockbooknumber] => Array ( [0] => UD0050237 ) [vinnumber] => Array ( [0] => AAVZZZ6R0SU016370 ) [regnumber] => Array ( [0] => CT31SKZN ) [uploadtype] => Array ( [0] => DEMO ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 ) [vehicleyear] => Array ( [0] => 2025 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => PURE WHITE ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 2000 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => ) [price] => Array ( [0] => 249950 ) [dealershipid] => Array ( [0] => 36 ) [molnumber] => Array ( [0] => MOL01339 ) [dealershipname] => Array ( [0] => Barons Pietermaritzburg ) [pictures] => Array ( [0] => a:9:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050237_9.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6R0SU016370 ) ) 1
AAVZZZ6R0SU016370
AAVZZZ6R0SU016370
Colour: PURE WHITE
MOL01339
28460967

Enquire

Sales Enquiry
<?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 249 950
2 000km
2025
MANUAL
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_9.jpg
VOLKSWAGEN
POLO
(2025)

VOLKSWAGEN VIVO HATCH MY25 1.4

Array ( [vehicleid] => Array ( [0] => 28461481 ) [dumpdate] => Array ( [0] => 2025-10-24T16:52:15.893 ) [mmcode] => Array ( [0] => 64020701 ) [molstockbooknumber] => Array ( [0] => MOL01339_U0070749 ) [stockbooknumber] => Array ( [0] => U0070749 ) [vinnumber] => Array ( [0] => AAVZZZ6R1SU017480 ) [regnumber] => Array ( [0] => CN97MTZN ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => POLO ) [vehiclemodel] => Array ( [0] => VIVO HATCH MY25 1.4 ) [vehicleyear] => Array ( [0] => 2025 ) [bodytype] => Array ( [0] => HATCH ) [transmissiontype] => Array ( [0] => MANUAL ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => REFLEX SILVER METALLIC ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 6350 ) [servicehistory] => Array ( [0] => ) [comments] => Array ( [0] => ) [price] => Array ( [0] => 249950 ) [dealershipid] => Array ( [0] => 36 ) [molnumber] => Array ( [0] => MOL01339 ) [dealershipname] => Array ( [0] => Barons Pietermaritzburg ) [pictures] => Array ( [0] => a:9:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01339_ud0050182_9.jpg";} ) [nmi_vehicle_id] => Array ( [0] => AAVZZZ6R1SU017480 ) ) 1
AAVZZZ6R1SU017480
AAVZZZ6R1SU017480
Colour: REFLEX SILVER METALLIC
MOL01339
28461481

Enquire

Sales Enquiry
<?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 249 950
6 350km
2025
MANUAL
More details