Need Help with some code….
-
Here is my simple problem. I am trying to get the previous page and next page function to work with this code, but they do nothing.
I have a category named news with just five entries in it for now and the top two entries display perfectly, but when I click on next page and previous page the entries do not change at all.
Do I need to go a different route with the code to get what I want??
<?php query_posts('category_name=news&showposts=2'); ?> <?php while (have_posts()) : the_post(); ?> <div class="storycontent" align="left"> <?php the_content(__('(more...)')); ?> </div> <!-- Do special_cat stuff... --> <?php endwhile; ?> <?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Need Help with some code….’ is closed to new replies.