WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

possibly with get_terms() and the 'parent' parameter: http://codex.wordpress.org/Function_Reference/get_terms

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.