<?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 T-ROC (2022)

VOLKSWAGEN MY23 1.4 TSI DESIGN TIPTRONIC

R 439 900
Range:
T-ROC
Year:
2022
Mileage:
51 078km
Colour:
PURE WHITE
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
28233107
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");
        }
    }
?>
Sales Enquiry - Mastercars

Similar Listings 

https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_9.jpg
VOLKSWAGEN
T-ROC
(2022)

VOLKSWAGEN MY21 1.4 TSI DESIGN TIPTRONIC

Array ( [vehicleid] => Array ( [0] => 28233105 ) [dumpdate] => Array ( [0] => 2025-09-09T08:50:36.31 ) [mmcode] => Array ( [0] => 64077200 ) [molstockbooknumber] => Array ( [0] => MOL01386_U0071025 ) [stockbooknumber] => Array ( [0] => U0071025 ) [vinnumber] => Array ( [0] => WVGZZZA1ZNV045319 ) [regnumber] => Array ( [0] => CAA945 ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => T-ROC ) [vehiclemodel] => Array ( [0] => MY21 1.4 TSI DESIGN TIPTRONIC ) [vehicleyear] => Array ( [0] => 2022 ) [bodytype] => Array ( [0] => STATION WAGON ) [transmissiontype] => Array ( [0] => AUTOMATIC ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => PURE WHITE ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 55400 ) [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 ) [price] => Array ( [0] => 389900 ) [dealershipid] => Array ( [0] => 51 ) [molnumber] => Array ( [0] => MOL01386 ) [dealershipname] => Array ( [0] => Barons Cape Town ) [pictures] => Array ( [0] => a:9:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01386_u0071025_9.jpg";} ) [nmi_vehicle_id] => Array ( [0] => WVGZZZA1ZNV045319 ) ) 1
WVGZZZA1ZNV045319
WVGZZZA1ZNV045319
Colour: PURE WHITE
MOL01386
28233105

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 389 900
55 400km
2022
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_12.jpg
VOLKSWAGEN
T-ROC
(2022)

VOLKSWAGEN MY21 2.0 TSI DESIGN 4MOTION DSG

Array ( [vehicleid] => Array ( [0] => 28232601 ) [dumpdate] => Array ( [0] => 2025-09-09T08:53:32.15 ) [mmcode] => Array ( [0] => 64077300 ) [molstockbooknumber] => Array ( [0] => MOL01342_U0071058 ) [stockbooknumber] => Array ( [0] => U0071058 ) [vinnumber] => Array ( [0] => WVGZZZA1ZNV049026 ) [regnumber] => Array ( [0] => CAA388981 ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => T-ROC ) [vehiclemodel] => Array ( [0] => MY21 2.0 TSI DESIGN 4MOTION DSG ) [vehicleyear] => Array ( [0] => 2022 ) [bodytype] => Array ( [0] => STATION WAGON ) [transmissiontype] => Array ( [0] => AUTOMATIC ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => PURE WHITE ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 87990 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Bellville MasterCars We can demo on your doorstep, anywhere in the Cape Peninsula! Finance with all major banks, insurance arranged, trade-ins are welcome. Awesome after sales service. Superbly looked after vehicles. Delivery can be arranged countrywide. Our Sales Staff will arrange everything for you! Give us a call & we will do the rest. We make it easy for YOU to buy a car! Optional warranties, service and maintenance plans available. Prices exclude “On the Road” and Delivery costs. ) [price] => Array ( [0] => 419899 ) [dealershipid] => Array ( [0] => 49 ) [molnumber] => Array ( [0] => MOL01342 ) [dealershipname] => Array ( [0] => Barons Bellville ) [pictures] => Array ( [0] => a:12:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_9.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_10.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_11.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071058_12.jpg";} ) [nmi_vehicle_id] => Array ( [0] => WVGZZZA1ZNV049026 ) ) 1
WVGZZZA1ZNV049026
WVGZZZA1ZNV049026
Colour: PURE WHITE
MOL01342
28232601

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 419 899
87 990km
2022
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_12.jpg
VOLKSWAGEN
T-ROC
(2024)

VOLKSWAGEN MY23 1.4 TSI DESIGN TIPTRONIC

Array ( [vehicleid] => Array ( [0] => 28227840 ) [dumpdate] => Array ( [0] => 2025-09-09T08:50:27.613 ) [mmcode] => Array ( [0] => 64077201 ) [molstockbooknumber] => Array ( [0] => MOL01342_U0071079 ) [stockbooknumber] => Array ( [0] => U0071079 ) [vinnumber] => Array ( [0] => WVGZZZA1ZPV653690 ) [regnumber] => Array ( [0] => LN56CKGP ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => T-ROC ) [vehiclemodel] => Array ( [0] => MY23 1.4 TSI DESIGN TIPTRONIC ) [vehicleyear] => Array ( [0] => 2024 ) [bodytype] => Array ( [0] => STATION WAGON ) [transmissiontype] => Array ( [0] => AUTOMATIC ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => WHITE ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 45911 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Bellville MasterCars We can demo on your doorstep, anywhere in the Cape Peninsula! Finance with all major banks, insurance arranged, trade-ins are welcome. Awesome after sales service. Superbly looked after vehicles. Delivery can be arranged countrywide. Our Sales Staff will arrange everything for you! Give us a call & we will do the rest. We make it easy for YOU to buy a car! Optional warranties, service and maintenance plans available. Prices exclude “On the Road” and Delivery costs. ) [price] => Array ( [0] => 469900 ) [dealershipid] => Array ( [0] => 49 ) [molnumber] => Array ( [0] => MOL01342 ) [dealershipname] => Array ( [0] => Barons Bellville ) [pictures] => Array ( [0] => a:12:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_9.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_10.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_11.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071079_12.jpg";} ) [nmi_vehicle_id] => Array ( [0] => WVGZZZA1ZPV653690 ) ) 1
WVGZZZA1ZPV653690
WVGZZZA1ZPV653690
Colour: WHITE
MOL01342
28227840

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 469 900
45 911km
2024
AUTOMATIC
More details
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_12.jpg
VOLKSWAGEN
T-ROC
(2024)

VOLKSWAGEN MY23 1.4 TSI DESIGN TIPTRONIC

Array ( [vehicleid] => Array ( [0] => 28227839 ) [dumpdate] => Array ( [0] => 2025-09-09T08:53:49.577 ) [mmcode] => Array ( [0] => 64077201 ) [molstockbooknumber] => Array ( [0] => MOL01342_U0071080 ) [stockbooknumber] => Array ( [0] => U0071080 ) [vinnumber] => Array ( [0] => WVGZZZA1ZPV654551 ) [regnumber] => Array ( [0] => JBR589FS ) [uploadtype] => Array ( [0] => USED ) [vehiclemake] => Array ( [0] => VOLKSWAGEN ) [vehiclerange] => Array ( [0] => T-ROC ) [vehiclemodel] => Array ( [0] => MY23 1.4 TSI DESIGN TIPTRONIC ) [vehicleyear] => Array ( [0] => 2024 ) [bodytype] => Array ( [0] => STATION WAGON ) [transmissiontype] => Array ( [0] => AUTOMATIC ) [fueltype] => Array ( [0] => UNLEADED ) [colour] => Array ( [0] => WHITE ) [numberofdoors] => Array ( [0] => 5 ) [mileage] => Array ( [0] => 32173 ) [servicehistory] => Array ( [0] => Full ) [comments] => Array ( [0] => Barons Bellville MasterCars We can demo on your doorstep, anywhere in the Cape Peninsula! Finance with all major banks, insurance arranged, trade-ins are welcome. Awesome after sales service. Superbly looked after vehicles. Delivery can be arranged countrywide. Our Sales Staff will arrange everything for you! Give us a call & we will do the rest. We make it easy for YOU to buy a car! Optional warranties, service and maintenance plans available. Prices exclude “On the Road” and Delivery costs. ) [price] => Array ( [0] => 479900 ) [dealershipid] => Array ( [0] => 49 ) [molnumber] => Array ( [0] => MOL01342 ) [dealershipname] => Array ( [0] => Barons Bellville ) [pictures] => Array ( [0] => a:12:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_9.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_10.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_11.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01342_u0071080_12.jpg";} ) [nmi_vehicle_id] => Array ( [0] => WVGZZZA1ZPV654551 ) ) 1
WVGZZZA1ZPV654551
WVGZZZA1ZPV654551
Colour: WHITE
MOL01342
28227839

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 479 900
32 173km
2024
AUTOMATIC
More details