Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $terms = apply_filters( 'taxonomy-images-get-terms', '' , array(
- 'taxonomy' => 'tutors',
- ) );
- if ( !empty( $terms ) ) {
- print '<ul>';
- foreach( (array) $terms as $term ) {
- print '<li><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'thumbnail' ) . '</li>';
- }
- unset($term);
- print '</ul>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement