WP_Query custom post type query not showing the exact post type

The post type argument needs to be written as post_type, but you are using it as post-type.

Change your argument to this:

$args = array(
    'post_type' => 'portfolio'
);

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