Hide broken Image if sub-cat-image is not available
-
hi
currently i m using this code to display the sub-cat images<?php foreach( (get_the_category() ) as $category ) {
if( $category->category_parent != 0 ): ?>
term_id); ?>”> <img src=” <?php echo z_taxonomy_image_url($category->term_id . ‘ ‘); ?>” />
<?php endif; }?>i want to display none while sub-cat dont have an image
please guide me
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hide broken Image if sub-cat-image is not available’ is closed to new replies.