I am trying to display certain categories along with their images on homepage. I've made sure the categories dont appear in the top menu and only in the code that I am trying to use. Below code only displays category which are in TopMenu.
Is there a way around?
<?php $categoryHelper = $this->helper('Magento\Catalog\Helper\Category'); foreach($categoryHelper->getStoreCategories() as $category): ?> <li> <a href="<?php echo $categoryHelper->getCategoryUrl($category) ?>"> <?php echo $category->getName() ?> </a> </li> <?php endforeach; ?>