title: Magento category list is empty
body: <p>I'm adding a category using the code below.</p>
  
  <p>My question is: How to modify this code to add a category to a Root Category?</p>
  
  <pre><code>require_once('../app/Mage.php');
  Mage::app('mysite');
  
  $category = Mage::getModel('catalog/category');
  $category-&gt;setStoreId(Mage::app()-&gt;getStore()-&gt;getId());
  
  if ($id) {
    $category-&gt;load($id);
  }
  $general['name'] = "My Category";
  $general['description'] = "Great My Category";
  $general['meta_title'] = "My Category"; //Page title
  $general['meta_keywords'] = "My , Category";
  $general['meta_description'] = "Some description to be found by meta search robots. 2";
  $general['is_active'] = 1;
  $general['is_anchor'] = 0;
  $general['url_key'] = "cars";//url to be used for this category's page by magento.
  $category-&gt;addData($general);
  
  try {
      $category-&gt;save();
      echo "&lt;p&gt;Success! Id: ".$category-&gt;getId();
  }
  catch (Exception $e){
      echo $e-&gt;getMessage();
  }
  </code></pre>