hi, i'm desperate for some help. i'm trying to get my homepage to only display posts & images tagged one specific category. this is the index.php file, part i added in to restrict to one category (40) is bolded. but it doesn't seem to be working (all new posts are appearing on the homepage). what am i missing? any help would be SO appreciated - thanks!
<?php get_header(); ?>
<!-- Content Wrap -->
<div id="galleryWrap">
<!-- Gallery -->
<div id="gallery">
<?php $posts = get_posts("category=40&numberposts=6"); ?>
<?php if(have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<!-- Thumbs -->
<div id="site-<?php the_ID(); ?>" class="thumbs">
ID, "Url", true); ?>" title="<?php the_title();?>"><img src="<?php echo get_post_meta($post->ID, "small", true); ?>" alt="<?php the_title();?>" class="thumbnail" />
</div><!-- [END] thumbs -->
<?php endwhile;?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
<?php endif; ?>
</div><!-- [END] gallery -->
<?php get_sidebar();?>
</div><!-- [END] galleryWrap -->
<?php get_footer(); ?>