函数
get_the_term_list($id,$taxonomy,$before='',$sep='',$after= '')
参数
$id – 帖子ID (必须)
$taxonomy – 分类法名称 (必须)
$before – 在列表之前,默认 ”
$sep – 使用的分割项
$after – 在列表之后,默认 ”
用法
$terms = get_the_term_list( $post->ID, 'xx-blog', '', ', ', '' ); echo $terms;
评论抢沙发