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.

1 Answer 1


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

  • Bueno. I was thinking of it backwards :) Thank you! Jul 20, 2011 at 3:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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