Where should I put the code to show the tag image
-
Hello,
First thank you very much for this amazing plugin !
I’m not very good in developing so please could you tell me exactly where should I put the code to call the image of my tag ?I tried to put this code :
<ul> <?php foreach (get_the_terms(get_the_ID(), 'your_taxonomy') as $cat) : ?> <li> <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> <a>term_id, 'your_taxonomy'); ?>"><?php echo $cat->name; ?></a> </li> <?php endforeach; ?> </ul>
Into the taxonomy.php file but it doesn’t work.
Here’s the website : https://www.parigirando.com/V22/2015/09/18/tour-orsay/
I wanted to see an icon for the tag “adulti”, to which I assigned an icon via the tag page in the admin of WP.I’ll be greatful for any help you could provide.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Where should I put the code to show the tag image’ is closed to new replies.