Hello,
I have been using the plug in paginav on my site for a few weeks now and loving it. Though I just noticed that it is not working on a couple of my pages where I am pulling a specific category:
<?php // retrieve posts from Cat 123
query_posts('cat=123');
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
?>
I read up and did see that paginav does not support custom loops, so I was attempting to just place in the stock "older entries or newer entries" code but appear to have the same results. Meaning there are more then 8 entries in the "3D Studio Max" category, but it appears to be refreshing and not pulling the next 8.
Here is my full loop:
<?php // retrieve posts from Cat 123
query_posts('cat=123');
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<?php the_content(''); ?>
<div class="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</div>
<div class="post_comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>
<div class="post_date">
<?php the_time('F jS, Y') ?>
</div>
<div class="postviewbtn"><a href="<?php the_permalink() ?>">View</a></div>
</div>
<?php endwhile; ?>
<ul>
<li><?php next_posts_link('« Older Entries') ?></li>
<li><?php previous_posts_link('Newer Entries »') ?></li>
</ul>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
Appreciate the gander and here is the live link:
http://www.cgcookie.com/articles/3d-studio-max
Cheers,
W