How to show custom attribute value on product page magento 2
Create a phtml file location app/design/frontend/vendor/theme/Magento_Catalog/templates/product/view/attr.phtml
here using this php code.
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');
echo $product->getResource()->getAttribute('style_tips')->getFrontend()->getValue($product);
?>Now upload xml code in catalog_product_view.xml
<referenceContainer name="product.info.main">
<block class="Magento\Catalog\Block\Product\View" name="attr" template="product/view/attr.phtml" />
</referenceContainer>
OR
<referenceContainer name="content">
<block class="Magento\Catalog\Block\Product\View" name="attr" template="product/view/attr.phtml" after="product.info.media" />
</referenceContainer>Now it will show your single product page

