If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member Harmonic's Avatar
    Join Date
    Jan 2011
    Member #
    23 times
    Basically I have code that works perfectly as intended, but now I want to paginate.

    <?php query_posts('category_name=customCategory&showposts=10'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_excerpt(); ?>
    <?php endwhile;?>
    Basically this code will show the excerpts of the 10 most recent posts in the category of customCategory. And it works But what if I have 12 posts in that category? The other two posts obviously wont show.

    Is there A way to add something to the loop to add a "next page" link to the bottom of the page only if there are more posts in the category than 10?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 03:25 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: