There are a few answers related to this but the problem I am facing is a little different. I'm only getting categories that are set as visible in Navigation Menu
It happens, for example, when I try to get all categories I have to show them with Mage::helper('catalog/category')->getStoreCategories();
It seemed to give me all categories but it didn't. There are like 10 main categories that I don't include in Navigation Menu with that option to avoid too many categories on the top of the page. Instead, I have an static cms named more
where I add those 10 manually at the end of the navigation menu.
So, what I'm asking is if there is a way to get all categories or another way to add these 10 categories in a single menu tab with the navigation menu activated.
Best Answer
Copy this code on your magento root dir and run it from url.