WP_Query returns no posts for category

The issue turned out to be custom post types. Even though a custom post type produces posts, WP_Query() doesn’t select them unless specifically coded to do so with ‘post_type’ => ‘slug’, in the query arguments.

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