• i am using this code in nav.php

    <div class="navigation">
    <?php
    	$args = array(
    				'format'       => '/page/%#%',
    				'base'         => '%_%',
    				'total'        => $wp_query->max_num_pages,
    				'current'	   => max( 1, $paged ),
    				'show_all'     => False,
    				'end_size'     => 3,
    				'mid_size'     => 2,
    				'prev_next'    => True,
    				'type'         => 'plain',
    				'add_args'     => False
    			);
    	wp_reset_query();
    ?>
    <?php echo paginate_links( $args )  ?>
    </div>

    but when i am inside a category and click on next page for older posts i am being redirected to website.com/page/2

    any help with this issue ??

Viewing 1 replies (of 1 total)
  • This plugin is extremely popular, well used, well supported as it solves category pagination issue.

    WP-PageNavi

    3.5M

    Read the FAQ on how to replace the ‘prev post’ ‘next post’ links with WP PageNavi…this is included also in many well used themes here.

Viewing 1 replies (of 1 total)
  • The topic ‘Navigation next page within category’ is closed to new replies.