Does get_query_var('cat') fetches child Category Posts as well?
<p>In category.php I am using custom query to get posts:</p>

<pre><code>                &lt;?php

                    $cat_id = get_query_var('cat'); 
                    $args = array(
                        'posts_per_page' =&gt; 2,
                        'orderby' =&gt; 'date',
                        'cat' =&gt; $cat_id
                    );

                    query_posts($args);
                    // the Loop
                    get_template_part('aa_HomeLoopMain');

                ?&gt;
</code></pre>

<p>I am using <code>get_query_var('cat')</code> to get category post of current category and I think this would only give Category Posts of category id with <code>$cat_id</code> but not it's <strong>child category posts</strong>?</p>