我试图从Posteta字段中获取复选框值,但无法将数组合并到单个结果中
$get_info_contact = get_post_meta( $result, \'wpcf-society-info-contact\', true );
$combined = \'\';
foreach($get_info_contact as $contacts){
foreach($contacts as $contact) {
$combined .= \'and\';
$combined .= $contact;
}
}
echo $combined;
Output:
andalcorandpresident
Expected output:
alcor and president