Magento get attribute label
To get attribute label for the product in Magento is not that straight-forward as we do for getting attribute value. You will need attribute code and product object to get the attribute label as shown below.
If you have the product object, you can use it to get the attribute’s label..
$label = $product->getResource()->getAttribute($attribute_code)->getFrontend()->getLabel($product);
For the current/selected store view..
$label = $product->getResource()->getAttribute($attribute_code)->getStoreLabel();
This will output you the label of the attribute associated with the attribute code you passed for that product. E.g. Shirt Size, Color, etc..
To get select/dropdown attribute label by value OR to get select/dropdown attribute value by label, please check this post: http://ka.lpe.sh/2012/09/13/magento-get-product-attribute-select-option-idlabelvalue/