回答我的问题,最终解决了(笑脸){
global $wpdb;
$broker_names = $wpdb->get_results("SELECT meta_value
FROM $wpdb->postmeta
WHERE meta_key = \'B_name\' ORDER BY meta_id DESC ", ARRAY_A);
$b_region = $wpdb->get_results("SELECT meta_value
FROM $wpdb->postmeta
WHERE meta_key = \'Region\' ORDER BY meta_id DESC ", ARRAY_A);
$b_photo = $wpdb->get_results("SELECT meta_value
FROM $wpdb->postmeta
WHERE meta_key = \'Photo\' ORDER BY meta_id DESC ", ARRAY_A);
for($d=0; $d<=count($b_names); $d++)
{
echo \'<div id="b-group"><dl class="b-badge">\';
echo \'<dt class="b-image">\';
echo \'<img src=\'.get_site_url().\'/wp-content/files_flutter/\'.$broker_photo[$d][\'meta_value\'].\' /></dt> \';
echo \'<dd class="b-name"><span>\'. $b_names[$d][\'meta_value\'].\'</span>\';
echo \'</dd><dd class="b-region">\';
$r_region = $b_region[$d][\'meta_value\'];
$new_region = unserialize($r_region);
echo \' \'.$new_region[0].\'</dd> \';
echo \'</dl></div>\';
}
}