Hey team,
I'm trying to include a custom textarea field in my custom post type that will allow the user to input any HTML into the field that would then be rendered in a certain spot on the page.
My current set up (not working)
1. Custom Field:
- Defined as a textarea type https://share.getcloudapp.com/v1uERGrR
- Sanitization set to "none" https://share.getcloudapp.com/DOukNLQn
2. In the Custom Post:
- HTML is added to the custom field in the custom post https://share.getcloudapp.com/bLuODNjN
3. Page Template (Bricks):
- Using code block to echo the value of the custom field https://share.getcloudapp.com/llugvenl
<?php echo '{mb_recipes_embed_code}' ?>
4. Result:
- On the page the out still appears to be sanitized. The HTML no longer has the <script>
tags. https://share.getcloudapp.com/2Nu6RQld
How do I make this work?