title: How do I check If sub category of category x in Wordpress?
body: <p>Is there a way that I can check using a conditional whether the page is a subcategory of a specific category ?</p>
  
  <p>i.e: on my 'category.php' I currently have:</p>
  
  <pre><code> &lt;?php } else if (is_category( 'blog' )) { ?&gt;
  </code></pre>
  
  <p>This is to render a different view depending which category page the user is on.</p>
  
  <p>Is it possible to do something like ?</p>
  
  <pre><code> &lt;?php } else if (is_sub_category_of( 'blog' )) { ?&gt;
  </code></pre>