Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Maybe it's a stupid question but I can't find the answer.

I have a custom taxonomy (directores) and each director is a term. Some times a film has more than one director. I need to print only the first director no all directors from one film.


share|improve this question

1 Answer 1

Finally I read the Wordpress doc Reference/get terms

$args = array('number' => '1',);
$terms = get_terms('director', $args );
foreach( $terms as $term ){
  echo  $term->name ;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.