Forums
Forums / Plugin: Categories Images / How to use it?
(@stmalk)
9 years, 10 months ago
I installed the plugin, activated, added images to categories and added this to my header.php and to page.php just to check.
<?php if(function_exists('z_taxonomy_image_url') && z_taxonomy_image_url() != null) { echo '<figure class="category-image">'; echo 'img src="'.z_taxonomy_image_url().'"alt="">'; echo '</figure>'; } ?>
It does absolutely nothing. If I put some random text instead of that code, it appears. So it’s the code that doesn’t do anything. Any suggestions? I just need to have all categories assigned to page displayed as icons.
https://wordpress.org/plugins/categories-images/
Sorry, dumb me, I watched some old tutorials. I used a loop code from your page and it all works perfectly. Thank you so much!
(@userbrn)
9 years, 9 months ago
Hi stmalk !
Can you post here your solution please? I’m trying to display the category image in anywhere but I still couldn’t find a solution.
Thanks in advance.
The topic ‘How to use it?’ is closed to new replies.