title: How to check if a post belongs to a category in Wordpress
body: <p>I need to check if a certain post belongs to a category or belongs to a descendant of a certain category.
  Is there a WordPress function for this, or do I need to do it myself?</p>
  <p>I should have mentioned that the WP version is 2.7.</p>