This problem is haunting me....after much googling and gurgling....still no progress. Working in the original Rev Theme v3.0 in WP 2.6.....but I think that the issue is of a general nature that applies to any theme.
Have a page that paginates fine. Have a category-X.php that does not and redirects to 404. Fiddled with archive.php and wasn't able to paginate that one either....can anyone step in and show me the way?? There's gotta be a way to paginate any page, any time, right, including archive pages, category pages, Yellow Pages....
This code works:
Code:
<?php
/*
Template Name: Listings Page
*/
?>
<?php get_header(); ?>
<div id="content2">
<div id="contentleft2">
<div id="listingspage">
<div class="thumb">
<h2>Our Featured Properties</h2>
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=1&showposts=5&paged=$page"); while ( have_posts() ) : the_post() ?>
<div class="thumbleft">
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" />
</div>
<div class="thumbright">
<?php the_title(); ?>
<?php the_content_limit(300, "Property Details"); ?>
</div>
<div style="clear:both;"></div>
<?php endwhile; ?>
View More Listings – <?php posts_nav_link(); ?></p>
</div>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar_post.php");?>
</div>
<?php get_footer(); ?>
But this does not:
Code:
<?php
/*
Template Name: Blog Page
*/
?>
<?php get_header(); ?>
<div id="content2">
<div id="contentleft2">
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=1&showposts=3&paged=$page"); while ( have_posts() ) : the_post() ?>
<h1><?php the_title(); ?></h1>
<?php the_time('F j, Y'); ?> by <?php the_author_posts_link(); ?><?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content(__('[Read more]'));?>
<div style="clear:both;"></div>
<div class="postmeta">
Filed under: <?php the_category(', ') ?>
Tagged: <?php the_tags('') ?></p>
</div>
<?php endwhile; ?>
View More Listings – <?php posts_nav_link(); ?></p>
</div>
<?php include(TEMPLATEPATH."/sidebar_post.php");?>
</div>
<?php get_footer(); ?>