好极了,我想出来了。
$values = get_post_meta( get_the_ID(), \'your_meta_whatever\', true );
foreach ($values as $value)
{$term = get_term_by(\'term_id\', $value, \'your taxonomy\');
$name = $term->name echo $name;}
如果你想用逗号或你选择的字符来分隔
$values = get_post_meta( get_the_ID(), \'your_meta_whatever\', true );
$total = count($values);$i=0; foreach ($values as $value) {$i++;
$term = get_term_by(\'term_id\', $value, \'your taxonomy\');
$name = $term->name;
echo $name;
if($i !=$total) echo\', \';}