Support » Alpha/Beta/RC » Pagination problem

  • Resolved Rakibuzzaman

    (@rakibuzzaman)


    Hi,

    I have been facing pagination problem in category page (WP 3.3) . In wp-admin setting I have set 5 posts per page. Pagination with 5 post page works fine. If I want 2 posts per page and wp-admin setting is 5 posts per page then I get pagination problem.

    Any body please help to solve this problem. And what is wrong in my code.

    Here is my code.

    <?php

    query_posts( “&posts_per_page=2”);

    if (have_posts()) :

    while (have_posts()) : the_post(); ?>

    <?php the_content(); ?>

    <?php endwhile; ?>

    <div class=”blog_page”><?php previous_posts_link( __( ‘« New’, ‘twentyten’ ) ); ?>|<?php next_posts_link( __( ‘Old »’, ‘twentyten’ ) ); ?></div>

    <?php endif; wp_reset_query(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination problem’ is closed to new replies.