Taxonomy Image Conditional Statement

a guest Jul 14th, 2014 271 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $catimage = z_taxonomy_image_url(NULL, 'your-image-size');
  2.         if(!empty($catimage)){ ?>
  3.                 <img src="<?php echo $catimage; ?>" alt="Your Image Alt Text">
  4. <?php } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand