
I have a (RTF) loop similar to this one:
Code: Select all
<?php foreach (WYLoopElement::aLoopIDs(teachers) as $webyep_oCurrentLoop->iLoopID) { $webyep_oCurrentLoop->loopStart(true); ?>
Name: <?php webyep_richText("name", false, "../styles.css", true); ?>
Email: <?php webyep_richText("email", false, "../styles.css", true); ?>
<?php $webyep_oCurrentLoop->loopEnd(); } ?>
How do I have the email field display only when it's populated, when it's not empty, please?
In other words if there is no value for that field, if it's empty (because there is no valid email to be entered by the editor), I don't want it to display at all on the finished page; of course it must be visible to the editor while the page is being edited.
I'm no PHP expert. Is it possible in WebYep conditionally to display a field like this, please?
TIA!