title: Get Joomla parent-category ID
body: <p>I got the article ID and category ID but couldn't get the parent category ID.</p>
  
  <p>How do I proceed?</p>
  
  <p>Article ID:</p>
  
  <pre><code>&lt;?php $id = (int)JRequest::getVar('id'); echo $id; ?&gt; 
  </code></pre>
  
  <p>Category ID:</p>
  
  <pre><code>&lt;?php $catid = JRequest::getInt('catid'); echo $catid; ?&gt;
  </code></pre>
  
  <p>I want to find out the parent-Category ID.</p>