magento2.3.2 show custom attribute on product detail page

Just testing Magento2.3.2 and on the details.phtml file in the luma theme of the product detail page I want to add a custom attribute which worked in 2.2.5 but now doesnt seem to work in the newest magento version. So wondering how I would change the below code to get it to work.

Here is my modified details.phtml file. What happens is no errors are written to any log file but now even the default product description doesnt show.

<?php if ($  detailedInfoGroup = $  block->getGroupSortedChildNames('detailed_info', 'getChildHtml')):?> <div class="product info detailed">     <?php $  layout = $  block->getLayout(); ?>     <div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}'>         <?php foreach ($  detailedInfoGroup as $  name):?>             <?php                 $  html = $  layout->renderElement($  name);                 if (!trim($  html)) {                     continue;                 }                 $  alias = $  layout->getElementAlias($  name);                 $  label = $  block->getChildData($  alias, 'title');             ?>             <div class="data item title"                  data-role="collapsible" id="tab-label-<?= /* @escapeNotVerified */ $  alias ?>">                 <a class="data switch"                    tabindex="-1"                    data-toggle="trigger"                    href="#<?= /* @escapeNotVerified */ $  alias ?>"                    id="tab-label-<?= /* @escapeNotVerified */ $  alias ?>-title">                     <?= /* @escapeNotVerified */ $  label ?>                 </a>             </div>             <div class="data item content"                   aria-labelledby="tab-label-<?= /* @escapeNotVerified */ $  alias ?>-title" id="<?= /* @escapeNotVerified */ $  alias ?>" data-role="content">                 <?= /* @escapeNotVerified */ $  html ?>             </div>         <?php endforeach;?>     </div>     <div class="data item title"                  data-role="collapsible" id="tab-label-ingrediants">                 <a class="data switch"                    tabindex="-1"                    data-toggle="trigger"                    href="#ingrediants"                    id="tab-label-ingrediants-title">                     Ingrediants test                 </a>     </div>     <div class="data item content"                   aria-labelledby="tab-label-ingrediants-title" id="ingrediants" data-role="content">                 <?php                     $  ingredients_content = $  _product->getResource()->getAttribute('ingredients')->getFrontend()->getValue($  _product);                     echo "$  ingredients_content";                 ?>     </div> </div>