Limit get_the_term_list to display only one value?
-
Greetings! I’ve looked around extensively to find a solution to this to no avail.
I am trying to limit get_the_term_list to display only the first term, utilizing something along the lines of ‘number’=> 1. I suppose this could be done with an array, although I can’t get the syntax right.
Here’s the code I am working with:
<?php echo get_the_term_list( $post->ID, 'artist' ); ?>
Thanks in advance for any advice!
- The topic ‘Limit get_the_term_list to display only one value?’ is closed to new replies.