• Hello,

    I try to create a page to show posts only from one category.
    I use this:

    query_posts('cat=31');
             if(have_posts()) : ?><?php while(have_posts()) : the_post();

    this works well but…
    when I use:
    posts_nav_link(' - ','Previous ',' Next');

    it shows the same posts and doesn’t show the older ones.

    Any ideas?

    Many thanks!

Viewing 1 replies (of 1 total)
  • $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'cat' => 31,
    	'paged' => $paged
    );
    query_posts($args);
Viewing 1 replies (of 1 total)

The topic ‘Problem with displaying one category’ is closed to new replies.