problem getting pagination to work
-
hi, I have and a page set up to dispaly a maximum of 5 post (set in the wordpress admin section)and only belonging to a certain category.
There could be losts of these posts so id like to paginate between pages of posts belonging to this category, however clicking newer or older links the page just stay on the same initial set of 5 posts
[code]
<div id="newsListHolder">
<div id="newsListBottom" class="clearfix">
<ul id="newsGallery" class="clearfix">
<?php
query_posts("cat=4&orderby=modified"); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>- <?php the_content(); ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div></div>
</div>
<?php else : ?>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
[/code]
Many thanks in advance
- The topic ‘problem getting pagination to work’ is closed to new replies.