Anybody else found that post_type=post doesn't exclude the pages?
If anyone can spot a bug in this, I'd appreciate it:
<div id="rightcol">
<?php
// this is where you enter the IDs of which categories you want to display
$display_categories = array(80,60,91,118);
foreach ($display_categories as $category) { ?>
<div class="clearfloat">
<?php query_posts("showposts=1&post_type=post&cat=$category");
$wp_query->is_category = false;
$wp_query->is_archive = false;
$wp_query->is_home = true;
?>
<h3><a href="<?php echo bloginfo('url'); echo "/locations/"; echo get_cat_name($category);?>"><?php
// this is where the name of each category gets printed
single_cat_title(); ?></a>
<br /></h3>
<?php while (have_posts()) : the_post(); ?>
<?php if (function_exists('get_cat_icon'))
get_cat_icon('fit_width=50&fit_height=50'); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php
// this is where title of the article gets printed
the_title(); ?>»</a>
<?php endwhile; ?>
</div>
<?php } ?>
</div><!--END RIGHTCOL-->