This is a Simple Code for Magento 2 implementing Custom Attributes to Custom tabs in Product page
Copy the files Stanly.zip to app/code/ and extract it. Now goto your magento admin and find the attribute name that you wish to show in custom tabs in the products listing page (front end). And open the file Stanly\incre\view\frontend\layout\catalog_product_view.xml , there you can find " Custom Tab Title " , replace it with your custom tab titles
After that goto Stanly\incre\view\frontend\templates
You will find two .phtml files called extra tab and extra tab 2. Open that and replace your attribute codes.
Now on Magento SSH Cli
Now you can see on your product details page the custom attribute you created is displaying as a Custom CMS block ( custom tab)