Here is my code

<div class="our_team_box_big">
<?php foreach (get_the_category() as $cat) : ?>
<div class="one_fourth">
<div class="two_third"><img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></div>
<strong><?php echo $cat->cat_name; ?></strong>
<?php endforeach; ?>

z_taxonomy_image_url(), is a category image plugin... Actually whats the my need is I am trying to access the all category images for a single post (i.e., I am craeting 5 categories and one post, how can I call all category images into that post?). I am using wordpress category image plugin

  • 1
    Can you expand a bit on what it is exactly you're trying to accomplish? What is z_taxonomy_image_url() function?
    – GhostToast
    Commented Jul 8, 2013 at 13:27

1 Answer 1


get_the_category() isn't the correct function - you should be using get_categories() per the dev documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.