How to use categories images in below loop …
-
Hello,
I’m trying to add categories images in below code .. how to get the thumbnail using below code.
<?php $counter = 0; $max = 6; $taxonomy = array('directors', 'producers', 'cinematographers', 'singers', 'writers', 'music_directors'); $terms = get_terms($taxonomy); shuffle ($terms); //echo 'shuffled'; if ($terms) { foreach($terms as $term) { $counter++; if ($counter <= $max) { echo '<p><a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a></p> '; } } } ?>
Please solve my problem. And also your website is not working ..
thanks 🙂 it’s a good plugin 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to use categories images in below loop …’ is closed to new replies.