I have the following code implemented on my site to grab the mos recent posts from all categories and then list the other most recent posts from the categories underneath by just their titles, but I am trying to find a way to have it do this for only ONE category for that section and not for all the categories. Any suggestions?
<ul id="cat-listing">
<? $categories = get_categories();foreach ($categories as $cat) { ?>
<li class="cat-block">
<h3><?echo $cat->name; ?></h3>
<?php $catID = $cat->cat_ID;
query_posts("showposts=8&cat=$catID");
$first=1;
$ul=0;
while (have_posts()) : the_post();
// Latest post with excerpt
if($first) {
?>
<div class="cat-most-recent">
<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
<div class="cat-list-excerpt">
<?php the_excerpt(); ?>
</div>
</div>
<?php
$first=0;
} // end if
else { if ($ul==0) {
echo '<ul class="cat-recent-list">';
$ul=1;
}
?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php } // end else ?>
<?php endwhile; ?>
<?if ($ul) echo '</ul>' ?>
</li>
<?php } //end foreach ?>
</ul>