Limit Number of Term in "get the term list"
I use taxonomy terms to create titles and other content and need to limit to the first taxonomy term. Is there a way to do this?
<h2><?php $terms_as_text = get_the_term_list( $post->ID, 'topics') ; echo strip_tags($terms_as_text); ?> Rest of Title</h2>
- The topic ‘Limit Number of Term in "get the term list"’ is closed to new replies.