What code to use in an array to call the current sub-category?

You shouldn’t be using WP_Query at all. The standard loop will automatically display the correct posts.

while ( have_posts() ) : the_post();

endwhile;

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