title: How Do I exclude a Magento category from the main menu
body: <p>How Do I exclude a Magento category from the main menu  and still maintain it in the side bar. I have tried these two code I got while searching on Google by replacing the default magento to these but its not working</p>
  
  <p>Here is the code  </p>
  
  <pre><code> &lt;?php $_menu = "" ?&gt;
    &lt;?php if($_menu): ?&gt;
    &lt;div class="nav-container"&gt;
    &lt;ul id="nav"&gt;
    &lt;?php foreach ($this-&gt;getStoreCategories() as $_category): ?&gt;
    &lt;?php if(stristr('71,70,69', $_category-&gt;getId()) === FALSE) : ?&gt; 
    &lt;?php echo $this-&gt;drawItem($_category) ?&gt;
    &lt;?php endif ?&gt;
     &lt;?php endforeach ?&gt;
  
     &lt;?php // echo $_menu ?&gt;
      &lt;/ul&gt;
     &lt;/div&gt;
    &lt;?php endif  ?&gt;
  </code></pre>
  
  <p>And here is the second piece of code. Also I got this from googling.</p>
  
  <pre><code>  &lt;?php $_menu = ''?&gt;
    &lt;?php foreach ($this-&gt;getStoreCategories() as $_category): ?&gt;
    &lt;?php $_menu .= $this-&gt;drawItem($_category) ?&gt;
   &lt;?php endforeach ?&gt;
   &lt;?php if ($_menu): ?&gt;
     &lt;div class="nav-container"&gt;
        &lt;ul id="nav"&gt;
      &lt;?php foreach ($this-&gt;getStoreCategories() as $_category): ?&gt;
         &lt;?php if (!in_array($_category-&gt;getId(), array(12,34,56))) : ?&gt; &lt;?php echo $this-     &gt;drawItem($_category) ?&gt;
        &lt;?php endif; ?&gt;
       &lt;?php endforeach ?&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;?php endif; */ ?&gt;
  </code></pre>
  
  <p>None of them seem to be working. I am using magento 1. 7.1</p>
  
  <p>Thanks for your help</p>