Do not display shortcode if field is blank
-
Is there a way in the templates to not display a shortcode if the corresponding field is blank?
For example, sometimes I input a link for an event, but other times I don’t. I have this in the template, but I’d like for it not to display when I don’t fill in the event link field:
<p><b><a href="{link}">More information</a><br><br>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Do not display shortcode if field is blank’ is closed to new replies.