<?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 (2025)
VOLKSWAGEN MY24 1.0 TSI LIFE DSG
R 449 900
Range:
T-CROSS
Year:
2025
Mileage:
10km
Colour:
PURE WHITE
Transmission:
AUTOMATIC
Fuel:
UNLEADED
Vehicle ID:
28221865
Available from Barons Kuruman
<?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/tol10136_u0070140_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_12.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_16.jpg
VOLKSWAGEN
T-CROSS
(2025)
VOLKSWAGEN MY24 1.0 TSI LIFE DSG
Array
(
[vehicleid] => Array
(
[0] => 28221793
)
[dumpdate] => Array
(
[0] => 2025-09-07T16:52:03.827
)
[mmcode] => Array
(
[0] => 64030171
)
[molstockbooknumber] => Array
(
[0] => TOL10136_U0070140
)
[stockbooknumber] => Array
(
[0] => U0070140
)
[vinnumber] => Array
(
[0] => WVGZZZC12SY011068
)
[regnumber] => Array
(
[0] => DFL410NC
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY24 1.0 TSI LIFE DSG
)
[vehicleyear] => Array
(
[0] => 2025
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => GRAPE YELLOW
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 13000
)
[servicehistory] => Array
(
[0] => None
)
[comments] => Array
(
[0] => SP 3Yr 45000km DFLT
)
[price] => Array
(
[0] => 399900
)
[dealershipid] => Array
(
[0] => 233
)
[molnumber] => Array
(
[0] => TOL10136
)
[dealershipname] => Array
(
[0] => Barons Kuruman
)
[pictures] => Array
(
[0] => a:12:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_6.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_7.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_8.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_10.jpg";i:6;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_11.jpg";i:7;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_12.jpg";i:8;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_13.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_14.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_15.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070140_16.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC12SY011068
)
)
1
WVGZZZC12SY011068
WVGZZZC12SY011068
Colour: GRAPE YELLOW
TOL10136
28221793
28221793
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/tol10136_ud0050039_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_10.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_21.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_22.jpg
VOLKSWAGEN
T-CROSS
(2025)
VOLKSWAGEN MY24 1.0 TSI LIFE DSG
Array
(
[vehicleid] => Array
(
[0] => 28221849
)
[dumpdate] => Array
(
[0] => 2025-09-07T16:52:03.827
)
[mmcode] => Array
(
[0] => 64030171
)
[molstockbooknumber] => Array
(
[0] => TOL10136_UD0050039
)
[stockbooknumber] => Array
(
[0] => UD0050039
)
[vinnumber] => Array
(
[0] => WVGZZZC1XSY011125
)
[regnumber] => Array
(
[0] => DFS292NC
)
[uploadtype] => Array
(
[0] => DEMO
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY24 1.0 TSI LIFE DSG
)
[vehicleyear] => Array
(
[0] => 2025
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => REFLEX SILVER METALLIC
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 1500
)
[servicehistory] => Array
(
[0] => None
)
[comments] => Array
(
[0] => SP 3Yr 45000km DFLT
)
[price] => Array
(
[0] => 419899
)
[dealershipid] => Array
(
[0] => 233
)
[molnumber] => Array
(
[0] => TOL10136
)
[dealershipname] => Array
(
[0] => Barons Kuruman
)
[pictures] => Array
(
[0] => a:13:{i:0;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_8.jpg";i:5;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_n0000177_10.jpg";i:6;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_11.jpg";i:7;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_13.jpg";i:8;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_14.jpg";i:9;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_15.jpg";i:10;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_18.jpg";i:11;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_21.jpg";i:12;s:92:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_ud0050039_22.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC1XSY011125
)
)
1
WVGZZZC1XSY011125
WVGZZZC1XSY011125
Colour: REFLEX SILVER METALLIC
TOL10136
28221849
28221849
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/tol10136_u0070128_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_9.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_11.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_13.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_14.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_15.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_16.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_17.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_18.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_19.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_20.jpg
VOLKSWAGEN
T-CROSS
(2024)
VOLKSWAGEN MY20 1.5 TSI R-LINE DSG
Array
(
[vehicleid] => Array
(
[0] => 28221854
)
[dumpdate] => Array
(
[0] => 2025-09-07T16:53:24
)
[mmcode] => Array
(
[0] => 64030350
)
[molstockbooknumber] => Array
(
[0] => TOL10136_U0070128
)
[stockbooknumber] => Array
(
[0] => U0070128
)
[vinnumber] => Array
(
[0] => WVGZZZC11PY183003
)
[regnumber] => Array
(
[0] => KJY144EC
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY20 1.5 TSI R-LINE DSG
)
[vehicleyear] => Array
(
[0] => 2024
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => REEF BLUE METALLIC
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 11492
)
[servicehistory] => Array
(
[0] =>
)
[comments] => Array
(
[0] =>
)
[price] => Array
(
[0] => 469900
)
[dealershipid] => Array
(
[0] => 233
)
[molnumber] => Array
(
[0] => TOL10136
)
[dealershipname] => Array
(
[0] => Barons Kuruman
)
[pictures] => Array
(
[0] => a:18:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_9.jpg";i:9;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_11.jpg";i:10;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_13.jpg";i:11;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_14.jpg";i:12;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_15.jpg";i:13;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_16.jpg";i:14;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_17.jpg";i:15;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_18.jpg";i:16;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_19.jpg";i:17;s:91:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070128_20.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC11PY183003
)
)
1
WVGZZZC11PY183003
WVGZZZC11PY183003
Colour: REEF BLUE METALLIC
TOL10136
28221854
28221854
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/tol10136_u0070110_1.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_2.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_3.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_4.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_5.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_6.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_7.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_8.jpg, https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_9.jpg
VOLKSWAGEN
T-CROSS
(2024)
VOLKSWAGEN MY20 1.5 TSI R-LINE DSG
Array
(
[vehicleid] => Array
(
[0] => 28218862
)
[dumpdate] => Array
(
[0] => 2025-09-07T16:53:24
)
[mmcode] => Array
(
[0] => 64030350
)
[molstockbooknumber] => Array
(
[0] => TOL10136_U0070110
)
[stockbooknumber] => Array
(
[0] => U0070110
)
[vinnumber] => Array
(
[0] => WVGZZZC16PY167055
)
[regnumber] => Array
(
[0] => KJG098EC
)
[uploadtype] => Array
(
[0] => USED
)
[vehiclemake] => Array
(
[0] => VOLKSWAGEN
)
[vehiclerange] => Array
(
[0] => T-CROSS
)
[vehiclemodel] => Array
(
[0] => MY20 1.5 TSI R-LINE DSG
)
[vehicleyear] => Array
(
[0] => 2024
)
[bodytype] => Array
(
[0] => CROSSOVER
)
[transmissiontype] => Array
(
[0] => AUTOMATIC
)
[fueltype] => Array
(
[0] => UNLEADED
)
[colour] => Array
(
[0] => REFLEX SILVER METALLIC
)
[numberofdoors] => Array
(
[0] => 5
)
[mileage] => Array
(
[0] => 5200
)
[servicehistory] => Array
(
[0] => None
)
[comments] => Array
(
[0] => SP 3Yr 45000km DFLT
)
[price] => Array
(
[0] => 469900
)
[dealershipid] => Array
(
[0] => 233
)
[molnumber] => Array
(
[0] => TOL10136
)
[dealershipname] => Array
(
[0] => Barons Kuruman
)
[pictures] => Array
(
[0] => a:9:{i:0;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_1.jpg";i:1;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_2.jpg";i:2;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_3.jpg";i:3;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_4.jpg";i:4;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_5.jpg";i:5;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_6.jpg";i:6;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_7.jpg";i:7;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_8.jpg";i:8;s:90:"https://bmrprodphotosuitestorage.blob.core.windows.net/stockimages/tol10136_u0070110_9.jpg";}
)
[nmi_vehicle_id] => Array
(
[0] => WVGZZZC16PY167055
)
)
1
WVGZZZC16PY167055
WVGZZZC16PY167055
Colour: REFLEX SILVER METALLIC
TOL10136
28218862
28218862
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"); } } ?>