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
Here is the code
<?php $_menu = "" ?>
<?php if($_menu): ?>
<div class="nav-container">
<ul id="nav">
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php if(stristr('71,70,69', $_category->getId()) === FALSE) : ?>
<?php echo $this->drawItem($_category) ?>
<?php endif ?>
<?php endforeach ?>
<?php // echo $_menu ?>
</ul>
</div>
<?php endif ?>
And here is the second piece of code. Also I got this from googling.
<?php $_menu = ''?>
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php $_menu .= $this->drawItem($_category) ?>
<?php endforeach ?>
<?php if ($_menu): ?>
<div class="nav-container">
<ul id="nav">
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php if (!in_array($_category->getId(), array(12,34,56))) : ?> <?php echo $this- >drawItem($_category) ?>
<?php endif; ?>
<?php endforeach ?>
</ul>
</div>
<?php endif; ?>
None of them seem to be working. I am using magento 1. 7.1
Thanks for your help