Fatal error when image not exists
-
To display the tag image I use that code:
<?php foreach (get_the_tags() as $cat) : ?> <img src="<?php echo z_taxonomy_image_url($cat->term_id, 'medium'); ?>" /> <?php endforeach; ?>It works fine excepts when the tag image doesn’t exists. Then I get a fatal error in php.
Any solution to avoid that? Thanks a lot!
The topic ‘Fatal error when image not exists’ is closed to new replies.