通常我用has_term() 和the_terms().
以下是示例
if( has_term(\'\', \'genre\') ){
// do something
}
the_terms( $post->ID, \'category\', \'categories: \', \' / \' );
或者,我用这个来获取列表
get_the_term_list()例如
echo get_the_term_list($post->ID, \'category\', \'\', \', \');