Display content only if variable is provided
-
I hope/assume this can be done in PHP, but I’m not sure how…
I have a variable in a Post Snippet, such as:
<div>Some text. <span>And here's my {variable}</span></div>Is there a way to NOT display the
<span>‘s if the variable is not provided?Thanks so much!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Display content only if variable is provided’ is closed to new replies.