Only show description if there is one
-
I only want to show the <div class=”ngg-imagebrowser-desc”> if there is a description
so is there a way of doing an ‘if’ on
<div class=”ngg-imagebrowser-desc”><p><?php echo $image->description ?></p></div>
something like…
<?php if($image->description){ ?>
<div class=”ngg-imagebrowser-desc”><p><?php echo $image->description ?></p></div>
<?php } else { ?>
<?php } ?>but that actually works?
https://www.ads-software.com/plugins/nextcellent-gallery-nextgen-legacy/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Only show description if there is one’ is closed to new replies.