Query Only Show Text on Posts With Certain Taxonomy Tag

You could use has_term Codex, like the following code:

if( has_term( 'jazz', 'genre' ) ) {
    echo 'This is something...';
}

Remember to add the third parameter – $post (int or object), if it’s not in the loop.

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