Advertisement
Guest User

cat_image

a guest
Sep 10th, 2012
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  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; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement