Title: Img src=&quot;empty&quot;  &#8211;
Last modified: August 22, 2016

---

# Img src="empty" –

 *  Resolved [Back to Front](https://wordpress.org/support/users/traverser11/)
 * (@traverser11)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/img-srcempty/)
 * Hi first of all thanks for the beautiful plugin, I’ve successfully got this working
   on another site, and I hope to use it on many more, its a really great way to
   show off category archives.
 * However this time I seem to have messed something up.
 * I can’t seem to get the Image src=”” to show get the category image.
    I’m guessing
   its an issue of my syntax of getting php to function within the the html tags?
 * [Here is a test page ](http://livrutimor.dreamhosters.com/artists/)
 * I’ve tried 2 ways to get the image, but as you can see everything works except
   for getting the image.
 *     ```
       <?php foreach (get_terms('artist') as $cat) : ?>
   
        <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
        <a href="<?php echo get_term_link($cat->slug, 'artist'); ?>"><?php echo $cat->name; ?></a>
   
        <?php endforeach; ?>
   
       </br>
   
       <?php
       // Set your args
       $args = array(
           'hide_empty' => 0   // Show terms that are not associated with any posts
       );
   
       // Get the terms
       $artists= get_terms('artist', $args);
   
       // Loop through and use terms
       foreach($artists as $artist)
       {
   
           echo get_category_link($artist->term_id);
           echo '<img src="' , z_taxonomy_image_url(NULL, 'thumbnail') , '">'; 
   
       }
   
       ?>
       ```
   
 * Thanks in advance if you can help me learn this punctuation, so much appreciated
   🙂
 * [https://wordpress.org/plugins/categories-images/](https://wordpress.org/plugins/categories-images/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Back to Front](https://wordpress.org/support/users/traverser11/)
 * (@traverser11)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/img-srcempty/#post-5455724)
 * Sorry! its just the images got uploaded to a sub directory of uploads – putting
   them back in uploads directory fixed it.
 * Works beautifully love this plugin

Viewing 1 replies (of 1 total)

The topic ‘Img src="empty" –’ is closed to new replies.

 * ![](https://ps.w.org/categories-images/assets/icon-128x128.png?rev=2256871)
 * [Categories Images](https://wordpress.org/plugins/categories-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/categories-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/categories-images/)
 * [Active Topics](https://wordpress.org/support/plugin/categories-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/categories-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/categories-images/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Back to Front](https://wordpress.org/support/users/traverser11/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/img-srcempty/#post-5455724)
 * Status: resolved