使用the_terms()
:
the_terms( $id, $taxonomy, $before = \'\', $sep = \', \', $after = \'\' )
因此,在您的循环中:
if ( \'radio-shows\' === get_post_type() )
{
the_terms( get_the_ID(), \'genre\' );
the_terms( get_the_ID(), \'instruments\' );
}
else
{
the_category();
the_tags();
}