Forums

Limit get_the_term_list to display only one value? (1 post)

  1. kidradio
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic