<?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 (2024)
VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE
R 239 900
Range: 
POLO
Year: 
2024
Mileage: 
11 066km
Colour: 
SMOKY GREY METALLIC
Transmission: 
MANUAL
Fuel: 
UNLEADED
Vehicle ID: 
28516020
Available from Barons Cape Town
<?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/mol01386_ud0050277_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_9.jpg
VOLKSWAGEN 
POLO
(2025)
VOLKSWAGEN VIVO HATCH MY25 1.4
Array
(
    [vehicleid] => Array
        (
            [0] => 28515624
        )
    [dumpdate] => Array
        (
            [0] => 2025-11-04T02:35:37.703
        )
    [mmcode] => Array
        (
            [0] => 64020701
        )
    [molstockbooknumber] => Array
        (
            [0] => MOL01386_UD0050277
        )
    [stockbooknumber] => Array
        (
            [0] => UD0050277
        )
    [vinnumber] => Array
        (
            [0] => AAVZZZ6R9SU015735
        )
    [regnumber] => Array
        (
            [0] => CAA403285
        )
    [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] => REFLEX SILVER METALLIC
        )
    [numberofdoors] => Array
        (
            [0] => 5
        )
    [mileage] => Array
        (
            [0] => 11551
        )
    [servicehistory] => Array
        (
            [0] => Full
        )
    [comments] => Array
        (
            [0] => Barons Cape Town V&A Waterfront.
Visit our dealership for a great selection used cars for sale.
What you can expect when you purchase a Master Car - a long trusted Brand promise :80-Point Technical Inspection/24-Hour Roadside Assistance/Certified Mileage/Full-Service History, Optional 2-Year / Unlimited mileage.
In house vehicle finance available.
Chat to our team:Simphiwe DyaniPaul ZibiDaiyaan EdriesElrick Johnson Shamiel NackerdienDemo Model
Demo Model
        )
    [price] => Array
        (
            [0] => 235950
        )
    [dealershipid] => Array
        (
            [0] => 51
        )
    [molnumber] => Array
        (
            [0] => MOL01386
        )
    [dealershipname] => Array
        (
            [0] => Barons Cape Town
        )
    [pictures] => Array
        (
            [0] => a:9:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050277_9.jpg";}
        )
    [nmi_vehicle_id] => Array
        (
            [0] => AAVZZZ6R9SU015735
        )
)
1
AAVZZZ6R9SU015735
AAVZZZ6R9SU015735
Colour: REFLEX SILVER METALLIC
MOL01386
28515624
28515624
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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_10.jpg
VOLKSWAGEN 
POLO
(2025)
VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE
Array
(
    [vehicleid] => Array
        (
            [0] => 28516026
        )
    [dumpdate] => Array
        (
            [0] => 2025-11-04T02:35:46.393
        )
    [mmcode] => Array
        (
            [0] => 64020721
        )
    [molstockbooknumber] => Array
        (
            [0] => MOL01386_UD0050216
        )
    [stockbooknumber] => Array
        (
            [0] => UD0050216
        )
    [vinnumber] => Array
        (
            [0] => AAVZZZ6R7SU008024
        )
    [regnumber] => Array
        (
            [0] => TEKTON4WP
        )
    [uploadtype] => Array
        (
            [0] => DEMO
        )
    [vehiclemake] => Array
        (
            [0] => VOLKSWAGEN
        )
    [vehiclerange] => Array
        (
            [0] => POLO
        )
    [vehiclemodel] => Array
        (
            [0] => VIVO HATCH MY25 1.4 LIFE
        )
    [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] => 5000
        )
    [servicehistory] => Array
        (
            [0] => Full
        )
    [comments] => Array
        (
            [0] => Barons Cape Town V&A Waterfront. Visit our dealership for a great selection used cars for sale.
What you can expect when you purchase a Master Car - a long trusted Brand promise :80-Point Technical Inspection/24-Hour Roadside Assistance/Certified Mileage/Full-Service History, Optional 2-Year / Unlimited mileage.
In house vehicle finance available. 
Chat to our team:
Simphiwe Dyani
Paul Zibi
Daiyaan Edries
Elrick Johnson 
Shamiel Nackerdien
Demo models in a wide range of choices 
Driveway dreams !
        )
    [price] => Array
        (
            [0] => 239900
        )
    [dealershipid] => Array
        (
            [0] => 51
        )
    [molnumber] => Array
        (
            [0] => MOL01386
        )
    [dealershipname] => Array
        (
            [0] => Barons Cape Town
        )
    [pictures] => Array
        (
            [0] => a:10:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050216_10.jpg";}
        )
    [nmi_vehicle_id] => Array
        (
            [0] => AAVZZZ6R7SU008024
        )
)
1
AAVZZZ6R7SU008024
AAVZZZ6R7SU008024
Colour: REEF BLUE METALLIC
MOL01386
28516026
28516026
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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_10.jpg
VOLKSWAGEN 
POLO
(2024)
VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE
Array
(
    [vehicleid] => Array
        (
            [0] => 28515949
        )
    [dumpdate] => Array
        (
            [0] => 2025-11-04T02:35:46.393
        )
    [mmcode] => Array
        (
            [0] => 64020721
        )
    [molstockbooknumber] => Array
        (
            [0] => MOL01386_U0071188
        )
    [stockbooknumber] => Array
        (
            [0] => U0071188
        )
    [vinnumber] => Array
        (
            [0] => AAVZZZ6R4SU010376
        )
    [regnumber] => Array
        (
            [0] => CAA625210
        )
    [uploadtype] => Array
        (
            [0] => USED
        )
    [vehiclemake] => Array
        (
            [0] => VOLKSWAGEN
        )
    [vehiclerange] => Array
        (
            [0] => POLO
        )
    [vehiclemodel] => Array
        (
            [0] => VIVO HATCH MY25 1.4 LIFE
        )
    [vehicleyear] => Array
        (
            [0] => 2024
        )
    [bodytype] => Array
        (
            [0] => HATCH
        )
    [transmissiontype] => Array
        (
            [0] => MANUAL
        )
    [fueltype] => Array
        (
            [0] => UNLEADED
        )
    [colour] => Array
        (
            [0] => PURE WHITE
        )
    [numberofdoors] => Array
        (
            [0] => 5
        )
    [mileage] => Array
        (
            [0] => 7560
        )
    [servicehistory] => Array
        (
            [0] => 
        )
    [comments] => Array
        (
            [0] => 
        )
    [price] => Array
        (
            [0] => 239900
        )
    [dealershipid] => Array
        (
            [0] => 51
        )
    [molnumber] => Array
        (
            [0] => MOL01386
        )
    [dealershipname] => Array
        (
            [0] => Barons Cape Town
        )
    [pictures] => Array
        (
            [0] => a:10:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050236_10.jpg";}
        )
    [nmi_vehicle_id] => Array
        (
            [0] => AAVZZZ6R4SU010376
        )
)
1
AAVZZZ6R4SU010376
AAVZZZ6R4SU010376
Colour: PURE WHITE
MOL01386
28515949
28515949
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://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_11.jpg
VOLKSWAGEN 
POLO
(2024)
VOLKSWAGEN VIVO HATCH MY25 1.4 LIFE
Array
(
    [vehicleid] => Array
        (
            [0] => 28510688
        )
    [dumpdate] => Array
        (
            [0] => 2025-11-04T02:38:54.483
        )
    [mmcode] => Array
        (
            [0] => 64020721
        )
    [molstockbooknumber] => Array
        (
            [0] => MOL01386_U0071206
        )
    [stockbooknumber] => Array
        (
            [0] => U0071206
        )
    [vinnumber] => Array
        (
            [0] => AAVZZZ6R1SU010271
        )
    [regnumber] => Array
        (
            [0] => CAA625191
        )
    [uploadtype] => Array
        (
            [0] => USED
        )
    [vehiclemake] => Array
        (
            [0] => VOLKSWAGEN
        )
    [vehiclerange] => Array
        (
            [0] => POLO
        )
    [vehiclemodel] => Array
        (
            [0] => VIVO HATCH MY25 1.4 LIFE
        )
    [vehicleyear] => Array
        (
            [0] => 2024
        )
    [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] => 14300
        )
    [servicehistory] => Array
        (
            [0] => 
        )
    [comments] => Array
        (
            [0] => 
        )
    [price] => Array
        (
            [0] => 239950
        )
    [dealershipid] => Array
        (
            [0] => 51
        )
    [molnumber] => Array
        (
            [0] => MOL01386
        )
    [dealershipname] => Array
        (
            [0] => Barons Cape Town
        )
    [pictures] => Array
        (
            [0] => a:11:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_1.jpg";i:1;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_2.jpg";i:2;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_3.jpg";i:3;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_4.jpg";i:4;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_5.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_6.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_7.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_8.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_9.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_10.jpg";i:10;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_ud0050227_11.jpg";}
        )
    [nmi_vehicle_id] => Array
        (
            [0] => AAVZZZ6R1SU010271
        )
)
1
AAVZZZ6R1SU010271
AAVZZZ6R1SU010271
Colour: REFLEX SILVER METALLIC
MOL01386
28510688
28510688
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");
        }
    }
?>
