0

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.

2

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! – robertwbradford Jul 20 '11 at 3:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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