Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • ch0usse

    (@ch0usse)

    @mad_max
    finally it work ! special thanks but I modified a little bit :

    if ( isset( $query_string['cat'] ) ) {
    			switch ($query_string['cat']) {
    				case 1:
    				$query_string['posts_per_page'] = 2;
    					break;
    				case 5:
    				$query_string['posts_per_page'] = 8;
    					break;
    				case 3:
    				$query_string['posts_per_page'] = 6;
    				// default:
    					// $query_string['posts_per_page'] = 6;
    					break;
    			}
    		}

    because WP don’t recognize ‘category_name’, maybe because I don’t use permalinks with localhost.

    THX

    ch0usse

    (@ch0usse)

    Hi,
    now I know why my pagination doesn’t work … I tried your workaround, no more 404 error but it don’t work correctly ??
    I have 3 categories with differents “posts_per_page” 6, 2 and 8
    Now I have this problem : I click on next news page (posts_per_page==2) => go category/news/page/2/ and it always display posts 1 to 2 and not 3 to 4
    the same with other categories
    <?php query_posts('cat=3&posts_per_page=2&paged=' . get_query_var('paged')); ?>
    I test on v3.3.1

Viewing 2 replies - 1 through 2 (of 2 total)