Hide terms if they aren’t the same as the current term

If you are on a term archive page, you already have the term object available to you via get_queried_object:

$term = get_queried_object();
echo get_term_link( $term );
echo $term->name;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)