I have read the previously asked and answered thread: Magento display all categories on product view page with parent categories
with the code:
$currentCatIds = $_product->getCategoryIds();
$categoryCollection = Mage::getResourceModel('catalog/category_collection')
->addAttributeToSelect('name')
->addAttributeToSelect('url')
->addAttributeToFilter('entity_id', $currentCatIds)
->addIsActiveFilter();
foreach($categoryCollection as $cat){
echo $cat->getName().' '.$cat->getUrl();
}
The code does add the category links to my product page, which is what I want.
But I have one specific category named "Default Category", and all other categories are under it. Is there anyway I can filter the "Default Category" and hide it from the product page?
I am terrible at PHP so please help me.
Thank you very much
Marcus