Custom taxonomy does not display in custom post loop

You haven’t exposed the global $post variable after calling $the_query->the_post().

Either add global $post right after calling $the_query->the_post(), or replace $post->ID with get_the_ID().

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