タームのスラッグ
<?php $terms = get_the_terms($post->ID,'カスタムタクソノミー');
foreach( $terms as $term )
echo ''.$term->slug.'';
}?>
ターム名
<?php $terms = get_the_terms($post->ID,'カスタムタクソノミー');
foreach( $terms as $term )
echo ''.$term->name.'';
}?>
<?php $terms = get_the_terms($post->ID,'カスタムタクソノミー');
foreach( $terms as $term )
echo ''.$term->slug.'';
}?>
<?php $terms = get_the_terms($post->ID,'カスタムタクソノミー');
foreach( $terms as $term )
echo ''.$term->name.'';
}?>
コメント