WP query by custom post type slug/name

'post_type' => 'custom post type slug'

By default ‘post_type’ is set as ‘post’, you will need to specify your custom post type in any query you make.

In future refer here:

http://codex.wordpress.org/Class_Reference/WP_Query

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