How to get custom category attribute value ?
<?php
// get category attribute value
$categories = Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*');
$process = Mage::getModel('index/process')->load(5); $process->reindexAll();
$process = Mage::getModel('index/process')->load(6); $process->reindexAll();
foreach ($categories as $category) {
$cat = Mage::getModel("catalog/category")->load($category->getId());
if($cat->getIs_homepage() == 1){ // Category attribute code (is_homepage or getIs_homepage);
echo $cat->getName(); // category name
echo $cat->getImageUrl(); // category image url
}
}
?>