Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Say, for example, I have the following custom taxonomy:

Term 1
   Term 1.1
   Term 1.2
      Term 1.2.1
      Term 1.2.2
   Term 1.3
Term 2
   Term 2.1

How can I get the children terms of Term 1, not including grandchildren? That is, I want my results to include only Term 1.1, Term 1.2, and Term 1.3. Thanks.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

possibly with get_terms() and the 'parent' parameter:

share|improve this answer
Bueno. I was thinking of it backwards :) Thank you! – robertwbradford Jul 20 '11 at 3:21

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.