Support

Account

Home Forums Add-ons Gallery Field if image caption exists Reply To: if image caption exists

  • Okay, I’ve figured this out:

    
    <?php if( $image['caption'] ): ?>
    <div class="caption"><?php echo $image['caption']; ?></div>
    <?php endif; ?>