Showing all posts and custom post types by using one category

It’s showing blank because there are no posts in it. The default category taxonomy is only connected with the default post type. To enable it to use it with a custom post type, add the following line to the register_post_type configuration

'taxonomies'  => array( 'category' ),

For more info : https://codex.wordpress.org/Function_Reference/register_post_type#taxonomies

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