Custom post not appearing under custom taxonomy category

in_category is only for the built-in category taxonomy. If you want to check a custom taxonomy term, use has_term:

if ( has_term( 'double portrait', 'twin' ) ) {

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