I'm having some trouble with this...
I'm trying to use the example they provide on the bottom of the loop page (which is just about exactly what I want to do..) however when I include the last query they give as the example it causes an 'unexpected $end' on the last line of index.php.
now if i understand correctly the basic structure of the page should look like (i'm editing index.php of the sandbox theme):
<?php $my_query = new WP_Query('cat=1&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<!--theme stuff, from original index.php with added header--!>
<?php endwhile ?>
</div><!-- #content -->
</div><!-- #container -->
<?php rewind_posts(); ?>
<?php query_posts; ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<!--theme stuff repeated from original index.php--!>
<?php endwhile ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'sandbox')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'sandbox')) ?></div>
</div>
</div>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>
any idea how to make this work right??