<?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-CROSS (2023)
VOLKSWAGEN MY21 1.0 TSI COMFORTLINE
R 359 000
Range:
T-CROSS
Year:
2023
Mileage:
55 000km
Colour:
Reef Blue
Transmission:
MANUAL
Fuel:
UNLEADED
Vehicle ID:
28531561
Available from Barons N1 City
<?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");
}
}
?>Call Now
Available from Barons N1 City
Cnr Giel Basson and, Nathan Mallach St, N1 City, Cape Town, 7500, South Africa
Similar Listings
https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_16.jpg
VOLKSWAGEN
T-CROSS
(2020)
VOLKSWAGEN MY20 1.0 TSI HIGHLINE DSG
Array
(
[vehicleid] => Array
(
[0] => 28529359
)
[dumpdate] => Array
(
[0] => 2025-11-08T15:53:29.32
)
[mmcode] => Array
(
[0] => 64030190
)
[molstockbooknumber] => Array
(
[0] => MOL01433_U0071311
)
[stockbooknumber] => Array
(
[0] => U0071311
)
[vinnumber] => Array
(
[0] => WVGZZZC1ZLY137147
)
[regnumber] => Array
(
[0] => CF275157
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY20 1.0 TSI HIGHLINE DSG
)
[vehicleyear] => Array
(
[0] => 2020
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => White
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 90155
)
[servicehistory] => Array
(
[0] => Full
)
[comments] => Array
(
[0] => Extras
APP-CONNECT with Wireless Charging
LED headlamps
Park distance control in front and rear
Lights & Vision package
Front fog lamps
Trade ins welcome and nationwide delivery at an agreed cost. To avoid disappointment, kindly speak to one of our Certified Mastercar Sales Executives Carmen Ray, Mildred Frantz, Ashley Naicker, Kirsten Redelinghuys, Eric Adolph or Rynard Snyman for more info. Buy your next Volkswagen Mastercar with complete confidence.
Park Package
)
[price] => Array
(
[0] => 288999
)
[dealershipid] => Array
(
[0] => 52
)
[molnumber] => Array
(
[0] => MOL01433
)
[dealershipname] => Array
(
[0] => Barons N1 City
)
[pictures] => Array
(
[0] => a:14:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_6.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_7.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_8.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_9.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_10.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_11.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_12.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_13.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_14.jpg";i:12;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_15.jpg";i:13;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071311_16.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC1ZLY137147
)
)
1
WVGZZZC1ZLY137147
WVGZZZC1ZLY137147
Colour: White
MOL01433
28529359
28529359
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/mol01433_uvw32mst123366_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_5.jpg
VOLKSWAGEN
T-CROSS
(2021)
VOLKSWAGEN MY20 1.0 TSI COMFORTLINE DSG
Array
(
[vehicleid] => Array
(
[0] => 28534396
)
[dumpdate] => Array
(
[0] => 2025-11-08T15:50:30.757
)
[mmcode] => Array
(
[0] => 64030170
)
[molstockbooknumber] => Array
(
[0] => MOL01433_U0071522
)
[stockbooknumber] => Array
(
[0] => U0071522
)
[vinnumber] => Array
(
[0] => WVGZZZC1ZMY123366
)
[regnumber] => Array
(
[0] => CY238735
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY20 1.0 TSI COMFORTLINE DSG
)
[vehicleyear] => Array
(
[0] => 2021
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => Limestone Grey
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 74174
)
[servicehistory] => Array
(
[0] =>
)
[comments] => Array
(
[0] =>
)
[price] => Array
(
[0] => 328999
)
[dealershipid] => Array
(
[0] => 52
)
[molnumber] => Array
(
[0] => MOL01433
)
[dealershipname] => Array
(
[0] => Barons N1 City
)
[pictures] => Array
(
[0] => a:5:{i:0;s:96:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_1.jpg";i:1;s:96:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_2.jpg";i:2;s:96:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_3.jpg";i:3;s:96:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_4.jpg";i:4;s:96:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_uvw32mst123366_5.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC1ZMY123366
)
)
1
WVGZZZC1ZMY123366
WVGZZZC1ZMY123366
Colour: Limestone Grey
MOL01433
28534396
28534396
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/mol01433_u0071482_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_14.jpg
VOLKSWAGEN
T-CROSS
(2022)
VOLKSWAGEN MY20 1.0 TSI HIGHLINE DSG
Array
(
[vehicleid] => Array
(
[0] => 28532611
)
[dumpdate] => Array
(
[0] => 2025-11-08T15:50:30.757
)
[mmcode] => Array
(
[0] => 64030190
)
[molstockbooknumber] => Array
(
[0] => MOL01433_U0071482
)
[stockbooknumber] => Array
(
[0] => U0071482
)
[vinnumber] => Array
(
[0] => WVGZZZC1ZNY108546
)
[regnumber] => Array
(
[0] => CAA413394
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY20 1.0 TSI HIGHLINE DSG
)
[vehicleyear] => Array
(
[0] => 2022
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => Grey
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 90269
)
[servicehistory] => Array
(
[0] => Full
)
[comments] => Array
(
[0] => Extras InfotainmentAPP-CONNECT with Wireless Charging LED headlamps Park distance control in front and rearLights & Vision packageFront fog lampsTrade ins welcome and nationwide delivery at an agreed cost.
To avoid disappointment, kindly speak to one of our Certified Mastercar Sales Executives Carmen Ray, Mildred Frantz, Ashley Naicker, Kirsten Redelinghuys, Eric Adolph or Rynard Snyman for more info.
Buy your next Volkswagen Mastercar with complete confidence.
Extras APP-CONNECT with Wireless Charging LED headlamps Park distance control in front and rearLights & Vision packageFront fog lampsTrade ins welcome and nationwide delivery at an agreed cost.
To avoid disappointment, kindly speak to one of our Certified Mastercar Sales Executives Carmen Ray, Mildred Frantz, Ashley Naicker, Kirsten Redelinghuys, Eric Adolph or Rynard Snyman for more info.
Buy your next Volkswagen Mastercar with complete confidence.
)
[price] => Array
(
[0] => 349000
)
[dealershipid] => Array
(
[0] => 52
)
[molnumber] => Array
(
[0] => MOL01433
)
[dealershipname] => Array
(
[0] => Barons N1 City
)
[pictures] => Array
(
[0] => a:14:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_9.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_10.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_11.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_12.jpg";i:12;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_13.jpg";i:13;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071482_14.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC1ZNY108546
)
)
1
WVGZZZC1ZNY108546
WVGZZZC1ZNY108546
Colour: Grey
MOL01433
28532611
28532611
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/mol01433_u0071439_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_19.jpg
VOLKSWAGEN
T-CROSS
(2023)
VOLKSWAGEN MY20 1.0 TSI COMFORTLINE DSG
Array
(
[vehicleid] => Array
(
[0] => 28534431
)
[dumpdate] => Array
(
[0] => 2025-11-08T15:53:47.023
)
[mmcode] => Array
(
[0] => 64030170
)
[molstockbooknumber] => Array
(
[0] => MOL01433_U0071439
)
[stockbooknumber] => Array
(
[0] => U0071439
)
[vinnumber] => Array
(
[0] => WVGZZZC1ZPY056429
)
[regnumber] => Array
(
[0] => KVX579NW
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY20 1.0 TSI COMFORTLINE DSG
)
[vehicleyear] => Array
(
[0] => 2023
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => Grey
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 33696
)
[servicehistory] => Array
(
[0] => Full
)
[comments] => Array
(
[0] => Extras include Connect package4 alloy wheels "Belmont" 6J x 16Black roof railsPark Distance Control Cruise control system and speed limiterApp-Connect.
Trade ins welcome and nationwide delivery at an agreed cost.
To avoid disappointment, kindly speak to one of our Certified Mastercar Sales Executives Carmen Ray, Mildred Frantz, Ashley Naicker, Kirsten Redelinghuys, Eric Adolph or Rynard Snyman for more info.
Buy your next Volkswagen Mastercar with complete confidence.
Extras include Removable trailer hitchMulti-color Active Info DisplayPARK PACKAGEInfotainment package Composition3Yr 45000km DFLTTrade ins welcome and nationwide delivery at an agreed cost.
To avoid disappointment, kindly speak to one of our Certified Mastercar Sales Executives Rynard Snyman, Eric Adolph, Mildred Frantz, Carmen Ray, Ashley Naicker, or Kirsten Redelinghuys for more info.
Buy your next Volkswagen Mastercar with complete confidence.
)
[price] => Array
(
[0] => 368999
)
[dealershipid] => Array
(
[0] => 52
)
[molnumber] => Array
(
[0] => MOL01433
)
[dealershipname] => Array
(
[0] => Barons N1 City
)
[pictures] => Array
(
[0] => a:19:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_9.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_10.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_11.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_12.jpg";i:12;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_13.jpg";i:13;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_14.jpg";i:14;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_15.jpg";i:15;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_16.jpg";i:16;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_17.jpg";i:17;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_18.jpg";i:18;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/mol01433_u0071439_19.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC1ZPY056429
)
)
1
WVGZZZC1ZPY056429
WVGZZZC1ZPY056429
Colour: Grey
MOL01433
28534431
28534431
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");
}
}
?>
