get term thumbnail 1

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 'get term thumbnail 2name . '" />';

Here is what the above code is Doing:
1. Get the current term object
2. Get the term meta for the thumbnail ID
3. Get the image URL for the thumbnail ID
4. Echo the image URL

You can use the same code to get the image URL for any term.

Similar Posts