Retrieve custom attribute value in the frontend

<?php foreach ($this->getStoreCategories() as $_category): ?> $cur_category = Mage::getModel(‘catalog/category’)->load($_category->getId()); if($cur_category->getFeaturedProduct()) : // Check if the featured category is enabled ?> /* Code for displaying featured category goes here */ <?php endif; ?> <?php endforeach; ?>

<?php

  foreach ($this->getStoreCategories() as $_category): ?>
    $cur_category = Mage::getModel('catalog/category')->load($_category->getId());
    if($cur_category->getFeaturedProduct()) : // Check if the featured category is enabled
?>
    /* Code for displaying featured category goes here */
    
<?php endif; ?>
<?php endforeach; ?>

Share this Tutorial