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.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.