Example of fetching categories in Magento and filtering by a custom attribute:
$categories = Mage::getModel('catalog/category')->getCollection(); $categories->addAttributeToSelect('name'); $categories->addAttributeToFilter('featured_category', 1); foreach($categories as $key => $category) { echo $category->getName(); }