Tips tagged “Conditional”
- Careful when combining conditionals and backspace=“x”
-
Posted on June 23, 2009 by Brent Cartier
I’ve run into this ‘gotcha’ a few times and have seen it frequently on the forums.
When using conditionals inside a weblog:entries loop, be careful that the backspace feature doesn’t clip the closing tag of your conditional. In this example you’ll end up with a broken or blank page depending
- Conditionally display text if an entry has categories assigned to it
-
Posted on June 23, 2009 by Oliver Heine
An entry may have zero, one or multiple categories assigned to it.
Imagine you want to put something like this below your entries:
Filed under: Books, Fantasy, Novel
Of course you don’t want to display an empty
Filed under:
if there actually aren’t any categories.
Since {categories} in
