I want to display custom attribute brand value on custom phtml file.
I tried Below code in phtml file but not working
<?php echo $_product->getResource()->getAttribute('brand')->getFrontend()->getValue($_product);?>
Is there any solution please share it.