Hi,
I'm using a slightly weird loop on my index page so that I can display a list of the last 5 post titles above the content then display the last 10 posts right below that. All of this while excluding one category..
problem is, now, pagination is no longer working.. I know it's due to the following code but i'm not sure how to go about fixing it:
<?php query_posts('cat=-7&showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<li class="funky"><a href="<?php the_permalink() ?>" class="funky"><?php the_title(); ?></a></li>
<?php endwhile;?>
</div>
<!-- begin the articles -->
<p class="meta2"> The Knowledge </p>
<?php query_posts('cat=-7&showposts=10'); ?>
<!-- <?php if (have_posts('cat=-7,-8,-9&showposts=10')) : ?> -->
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p>
<span class="user"><?php the_time('D M d, Y') ?> at <?php the_time('g:i a'); ?></span>
<span class="user2">By <?php the_author() ?> </span>
</p>
<div class="entry">
<?php the_content('Read More →'); ?>
</div>
<p class="postmeta">
<span class="commr"><?php comments_popup_link('No Comments →', 'Comment (1)', 'Comments (%)'); ?></span>
| <span class="catr">Channel: <?php the_category(', ') ?></span>
| <?php edit_post_link('Edit', '<span class="editr">', '</span>'); ?>
</p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link('← Previous Entries') ?>
</div>
<div class="alignright">
<?php previous_posts_link('Next Entries →') ?>