WordPress: display taxonomy without link
par Raphaël<?php $terms_as_text = get_the_terms(
$wp_query->post->ID, 'mytaxonomy') ;
foreach ($terms_as_text as $i => $term){
echo $term->name."<br>";
}
?>
<?php $terms_as_text = get_the_terms(
$wp_query->post->ID, 'mytaxonomy') ;
foreach ($terms_as_text as $i => $term){
echo $term->name."<br>";
}
?>
Laisser un commentaire