Hey, this has been really useful. I have a slightly different project in mind. I'm using the Mimbo theme which highlights the most recent post in a lead div. I'm trying to modify it so that the lead post excludes certain categories, which I have pulled off, but how would I have it show a post if it is sticky?
This is what I have:
<div id="lead" class="clearfloat">
<!---Loop One to Get Lead Story Excluding Category 5 (About KZBlog)-->
<?php
$blog_query = 'showposts=1&cat=-5&paged='.$paged;
$posts = query_posts($blog_query);
while (have_posts()) : the_post(); ?>
<!--Loop One Publish Details of Story-->
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
<br />
<!--Lead Post Image-->
<?php $cti = catch_that_image(); if(isset($cti)){ ?>
<img src="<?php bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo $cti; ?>&h=230&w=230&zc=1" alt="Link to <?php the_title(); ?>"
class="thumbnail"/>
<?php } else {?><img src="http://www.kzblog.net/wp-content/uploads/2010/03/defaultfeaturedimg.png"><?php } ?>
</a>
<!--Lead Post Text-->
<div id="lead-text">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_title(); ?></a> <span class="commentcount"> (<?php comments_popup_link('0', '1', '%'); ?>)</span></h2>
<br /><p class="postmetadata"><?php _e('Categorized as','Mimbo'); ?> <?php the_category(',') ?>
<br /><?php the_tags('Tagged as ',', ');?></p>
<?php the_excerpt(); ?><p align="right"><a href="<?php the_permalink() ?>" rel="bookmark" title="More">Read More</a></p>
</div>
<!--End Loop One--?
<?php endwhile; ?>
<!--End Lead or Sticky Post-->
Not a php expert but can I modify this:
<?php
$blog_query = 'showposts=1&cat=-5&paged='.$paged;
$posts = query_posts($blog_query);
while (have_posts()) : the_post(); ?>
to say OR if sticky is true?
Thanks in advance.