Custom post type, custom taxonomy, query posts only from taxonomy (children of)

The problem was in not reading documentation carefully enough 😉

As it stands in http://codex.wordpress.org/Class_Reference/WP_Query in ‘tax_query’ part, “tax_query takes an array of tax query arguments arrays” so the correct part of code would be:

$query_args = array(
    'post_type' => 'portfolio-type',
    'paged' => $paged,
    'tax_query' => array(
        array(
            'taxonomy' => 'portfolio-category',
            'field' => 'id',
            'terms' => $CAT_ID
        )       
    ),
);

The missing array() in existing array() was a problem.
Thanks hakre :).

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