title: WP - Get depth of category's subcategories
body: <p>In Wordpress, I'm looking to get the depth a category's subcategories.</p>
  
  <p>Suppose I have a category 'grandparent' which has a subcategory 'parent' which in turn has a subcategory 'child'. How do I get to integer 2?</p>
  
  <p>I suppose I could check if 'grandparent' has subcategories and if it does, check if they have subcategories, etc, until I hit 0. But that seems like a lot of unnecessary processing.</p>
  
  <p>Isn't there a more elegant way?</p>