You can get the label of an attribute by using the getAttributeText()
function. For example:
$text = $product->getAttributeText('manufacturer');
Also, the error you're seeing with your second bit of code I believe is because you're using $_product
, which is undefined/null. Try $product
instead.