Support » Plugins » WP-Paginate – pagination not working

  • Everytime it showing the same page.
    This is my code

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array ('cat' => $_REQUEST['cat'],'posts_per_page' => '2');
    query_posts($args . '&paged=' . $paged);
      if ( have_posts() ) :
    	while (have_posts()) : the_post();
    		the_title();
    		the_content();
    	endwhile;
      if(function_exists('wp_paginate')) {
        	wp_paginate();
      }
    endif; ?>

  • The topic ‘WP-Paginate – pagination not working’ is closed to new replies.