Shortcode doesn’t display in custom post type

You could just

echo do_shortcode( $content );

Function Reference/do shortcode

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