term_id : ''; $image_id = get_term_meta( $term_id, 'image', true ); $has_post_thumbnail = ( is_singular() && has_post_thumbnail( get_the_id() ) || is_archive() ) ? ' has-post-thumbnail' : ''; ?>