Using Dynamic Render Templates for the first time. In my file for the flexible field, I have <?php echo ($is_preview) ? ‘is-preview’ : ”; ?> inside my wrapper div class=””. It all works great, but on the front-end when viewing source I’m getting <br /> <b>Warning</b>: Undefined variable $is_preview in ….
I tried searching support on here, and didn’t see any reference to this. I understand the value should be false since we’re not on the backend and nothing should be echoed. Just curious how to remove the output warning in the HTML.