Get terms for a specfic post from multiple taxonomies in custom post type

You kind of not telling what the problem is, like debug, error message you get. There is most likely something wrong with how you wrote that, I’m not willing to go trough this right now. But generally you should make this cleaner and separate parts for an better structure, regarding the taxonomy name as id for the div see below simplified example on how I’d do this:

$term_obj = wp_get_post_terms(get_the_ID(), 'example-taxonomy', array("fields" => "names"));
echo '<div class"example" id="'.$term_obj[0].'">EXAMPLE</div>';

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