StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-11-2009, 07:05 PM
markr's Avatar
markr markr is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Posts: 162
Default Pagination (Next Pg, Prev Pg...)

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(); ?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prev / Next navigation on homepage tengri General Discussion 8 02-12-2010 12:38 AM
Prev/Next not working for some pages dbellmaine General Discussion 4 01-05-2010 02:25 PM
link rel prev next posts with same category? sriraj46 General Discussion 2 12-31-2009 10:35 AM
Next and Prev photo in the portfolio Marijn General Discussion 2 08-04-2009 04:02 PM
Next /Prev photo help needed photogl General Discussion 5 07-17-2009 05:40 PM


All times are GMT -5. The time now is 07:51 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.