Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get term thumbnail

$image_id           = get_term_meta( $term->term_id, 'thumbnail_id', true );
$post_thumbnail_img = wp_get_attachment_image_src( $image_id, 'large' );

echo '<img src="' . $post_thumbnail_img[0] . '" alt="' . $term->name . '" />';
 
PREVIOUS NEXT
Tagged: #term #thumbnail
ADD COMMENT
Topic
Name
4+2 =