Only Two Pages of Posts Showing
-
I’m working on a new and relatively complex layout for my site, using lots of query_posts and etc tricks, mainly the Multiple Loops Version 2 trick… I don’t really think that’s related to this issue, but it may be.
I’m running a regular good ol’ fashion loop for my category pages. Nothing weird or anything, just a regular loop. For some reason, when you page through to the previous entries, that’s it. It wont let you page through to any more entries. It’ll only go to page/2 and then it wont continue on any further. This is strictly specific to my new design.
You can view the problem in action here: https://ihavebeenfloated.org/category/personal/
And the format of my loop is as follows, pretty much the Kubrick loop verbatim:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><div class="post-container">
<div class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div><div class="post-content">
<?php the_content('Read More »');?>
</div><div class="post-date"><?php the_time('F j, Y'); ?></div>
<div class="post-comments"><a href="#">View or Leave Comments</a></div></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 »') ?></div>
</div><?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
The extra query-post loops I’m running in the left bar look like this:
<?php $my_query = new WP_Query('showposts=1&cat=3'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="small-post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div>
<div class="small-post-content">
<?php the_excerpt() ?>
</div>
<div class="small-post-date"><?php the_time('F j, Y'); ?></div>
<div class="small-post-more"><a href="<?php the_permalink() ?>">Read More</a></div>
<?php endwhile; ?>
- The topic ‘Only Two Pages of Posts Showing’ is closed to new replies.