• I use

    <?php query_posts('cat=3');?>
    <?php wp_reset_query();?>

    It looks all right, but page navigation stuck,Just can display first page.

    I found these code but also doesn’t work.can’t display any post.

    <?php
    $limit = get_option('posts_per_page');
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 3;
    query_posts('cat=1&showposts=' . $limit=15 . '&paged=' . $paged);
    $wp_query->is_archive = true; $wp_query->is_home = false;
    ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to display post in only one category?’ is closed to new replies.