daily pastebin goal
51%
SHARE
TWEET

cat_image

a guest Sep 10th, 2012 407 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php foreach (get_the_category() as $cat) : ?>
  2.  
  3.         <?php $cat_image = z_taxonomy_image_url($cat->term_id);
  4.         if (!empty($cat_image)): ?>
  5.  
  6.                 <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
  7.  
  8.         <?php endif; ?>
  9.  
  10.  <?php endforeach; ?>
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
 
Top