To display only a single category’s posts on a WordPress archive page, you can modify your theme’s functions.php file or create a custom template. The best approach is…
Magento2 admin account disabled error: Hello All, If you get issue something below on the Magento2 login page Simply below query to database via phpmyadmin. Example…
Please use the below code for exclude a category id from category collection in Magento <?php $allCategories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ->addAttributeToFilter('level',2) ->addAttributeToFilter('entity_id', array('nin' => 69)) ->addIsActiveFilter(); ?>
Get Categories and Its Sub Categories in Magento: To retrieve categories and their subcategories in Magento, you can use Magento’s built-in repository classes and helper functions. Using the…