I have a site were I am using the following code to pull in posts from a certain category and display them on the home page.
<?php $recent = new WP_Query("cat=9&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<?php the_content(__('Read the story »'));?>
<?php endwhile; ?>
However this category (ID = 9) has a child category, but I do not want the post from this child category to be displayed as they are displayed elsewhere on the homepage.
How can I modify this code (or use other code) to change this query so that it doesn't display posts from a child category. Thanks.