• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

Wordpress pagination issue

Hi,

I have a problem with pagination on this page http://www.atilus.com/portfolio/ . It doesn't work, please let me know how to fix this.

Thank you!!!
0
jenna25
Asked:
jenna25
  • 5
  • 3
1 Solution
 
Jason C. LevineNo oneCommented:
What happens if you disable your permalinks and use the default style?  Will the page paginate properly?

Also, which theme is this?
0
 
jenna25Author Commented:
If I set it to default it stops working.

It is a custom theme.

Thanks
0
 
Jason C. LevineNo oneCommented:
What does "it stops working" mean?  It's not working now, right?
0
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 
jenna25Author Commented:
I mean the whole site stops working
0
 
Jason C. LevineNo oneCommented:
I think you may need to post the code for that page/category at this point.
0
 
jenna25Author Commented:
Here is the code
<?php
/**
* @package WordPress
* @subpackage Default_Theme
Template Name: Portfolio Main
*/

get_header(); ?>
		
		<!--  / content container \ -->
		<div id="contentCntr">
			<div id="top">			
				<div id="bottom">
			
					<!-- / center container \ -->
					<div id="centerPanel">
						
						<!-- / nav menu \ -->
						<div class="navMenu">
						
							<h1>Portfolio</h1>
						
							<?php wp_nav_menu('menu=navmenu&link_before=<span>&link_after=</span>'); ?>
						
						</div>
						<!-- / nav menu \ -->
						
						<!-- / portfolio list \ -->
						<div class="portfolioList">
						
						<?php $key="categoryId"; $catid= get_post_meta($post->ID, $key, true); ?>
														
						<?php
						$Qstring=$_SERVER['REQUEST_URI'];
						$paged=getPageNo($Qstring);
						query_posts('showposts=18&cat="'.$catid.'"&paged='.$paged); ?>
						
						<?php while (have_posts()) : the_post(); ?>
						
						<div class="item">
							
							<a href="<?php the_permalink() ?>"><?php the_post_thumbnail( array(275,136) ); ?> </a>
							
							<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
							
							<?php echo excerpt(10); ?>
							
						</div>
						<?php endwhile;?>
						
						<div class="navigation">
							<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
							<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
						</div>
							
						</div>
						<!-- \ portfolio list / -->
					
					</div>
					<!-- \ center container / -->
								
				</div>			
			</div>
		</div>
		<!-- \ content container / -->

<?php get_footer(); ?>

Open in new window

0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now