Support » Plugins » Why do the Next and Prev link not work on the category.php page

  • Iv been researching for some time now, but i cant find a better solution on why is the Next and Prev links not working on the category.php page.

    I’v tried a few plugins such as WP-Paginate but none of them does a great job for me

Viewing 1 replies (of 1 total)
  • But this is how it should be, Is that so?

    <?php get_header(); ?>
     <?php global $query_string; query_posts( $query_string . '&posts_per_page=4'); ?>
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="post">
       <div class="date"><?php the_time('F dS Y'); ?></div>
         <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
     <div class="tags">
     <?php the_tags('Selected works: ', ', ', '<br />'); ?>
         <div class="entry">
        <?php the_content( '<div id="entry-more">More Information</div>' ); ?>
        <div id="separate">|</div>
        <div id="comm"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>
       <div id="dividerLine"></div>
         <?php endwhile; ?>
    <div id="navigation">
    	 <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    			else { ?>
                            <div id="prev_link"><?php previous_posts_link('&laquo; Previous') ?></div>
    			<div id="next_link"><?php next_posts_link('Next &raquo;') ?></div>
    			<?php } ?>
    <!-- Page number inattivo
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
    <?php else: ?>
        <h2>Not Found</h2>
        <p>Sorry, but you are looking for something that isn't here.</p>
        <?php endif; ?>
    <?php get_sidebar();?>
    <?php get_footer();?>
Viewing 1 replies (of 1 total)
  • The topic ‘Why do the Next and Prev link not work on the category.php page’ is closed to new replies.