How to show image on front end
-
After struggling with this for a long time, I really have come to a standstill. It shows up just fine on the backend. I uploaded images, etc.
But on the front end… I have a page where I have an unordered list of tags and I’d like thumbanils with them like this:
<div class="product-tags"> <ul> <?php foreach ( $terms as $term ) { ?> <li><a href="<?php echo get_term_link( $term->term_id, 'product_tag' ); ?> " rel="tag"> <img src="<?php $image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '' ); ?>"> <?php echo $term->name; ?></a></li> <?php } ?> </ul> </div>
you can note that I tried to show the image as per the plugin author’s instructions but nothing displays.
<img src="<?php $image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '' ); ?>">
How do I get each tag to show its accompanying image?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How to show image on front end’ is closed to new replies.