I am using this plugin to grab images from my categories in wordpress: http://zahlan.net/blog/2012/06/categories-images/

I am having trouble passing an image size through the code. I am not amazing with PHP but can get around as needed.

I am trying to make my images 200×200 width and height. Any help on how to do this would be greatly appreciated.

Below is my code:

<ul>
        <?php foreach (get_categories() as $cat) : ?>
      <li>
        <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
        <a href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a>
      </li>
        <?php endforeach; ?>
</ul>

Thanks so much!

Read more here: How to pass image width and height inside code


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: