Hi, the default wordpress category template shows all the posts for this category and also all posts from the children categories, some times we need to only get the category posts and exclude all posts from the children categories, you can you the following code to do that without any plugins or hacking the wordpress core files.
Simply put this line of code before the posts loop in category template:
<?php query_posts(array('category__in' => array(get_query_var('cat')))); ?>
and put this line of code after the loop:
<?php wp_reset_query(); ?>
That’s it Image may be NSFW.
Clik here to view.