I’ve created the Custom Field “custom-script” it has a Field Type of textarea and the “Default Text Formatting for This Field” is set to “None”
To bring this into the page I have:
{exp:weblog:entries weblog="equine-news" limit="1" disable="member_data|comments|trackbacks|pagination" status="open|Announcement"}
{if custom-script != ""}{custom-script}{/if}
{/exp:weblog:entries}If “custom-script” is empty it’s not included and all is well.
If “custom-script” is not empty then the script is included. The problem is the it’s also including a pair of empty p tags (see below) I don’t know why they’re showing up or how to prevent them from being added. Appreciate any help, thanks ~Jules
<!-- BEGIN custom script -->
script type="text/javascript"
my script
script>
<!-- END custom script -->