Post navigation page 2 not working
-
Currently it is displaying 3 out of 5 post and whenever i clicked the 2nd page, it directs me to the 404 page.
Much appreciated. thanks!
Here’s my code below:
<?php
/**
* The category archive template file.
* @package RestImpo
* @since RestImpo 1.0.0
*/
get_header(); ?>
<div id=”wrapper-content”>
<?php if ( have_posts() ) : ?>
<div class=”content-headline-wrapper”>
<div class=”content-headline”>
<h1><?php single_cat_title(); ?></h1>
</div>
</div>
<div class=”container”>
<div id=”main-content”>
<div class=”entry-content”>
<?php if ( category_description() ) : ?><div class=”archive-meta”><?php echo category_description(); ?></div><?php endif; ?>
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(‘showposts=3&paged=’.$paged); ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( ‘content’, ‘archives’ ); ?>
<?php endwhile; endif; ?>
<?php restimpo_content_nav( ‘nav-below’ ); ?>
</div> <!– end of content –>
</div>
<?php get_sidebar(); ?>
</div>
</div> <!– end of wrapper-content –>
<?php get_footer(); ?>’
- The topic ‘Post navigation page 2 not working’ is closed to new replies.