I have a custom taxonomy called "Artists" which has the taxonomy singular name set to "Artist".
If a post only has 1 artist I would like the label to be "Artist" instead of "Artists".
How could I achieve this? My current code is below. Thanks!
<?php
$taxo_text = "";
$artists = get_the_term_list( $post->ID, 'artists', "<div class='grid_2 details'>
<ul class='credits'> <li class='smallunderline'>Artists</li><li> ", '</li><li>', '</li></ul></div>' );
if ( '' != $artists ) {
$taxo_text .= $artists;
}
if ( '' != $taxo_text ) {
echo $taxo_text;
} // endif
?>