Problem with page 2 in wordpress category

Discussion in 'WordPress' started by Matt18, Jan 13, 2010.

  1. #1
    Hello

    I have a small problem on this page: http://www.celjani.com/

    First page shows posts from a certain category and excludes posts from all other categories. This is the code used:

    <?php if (is_home()) query_posts( array(
    'showposts'=>5,
    'cat' => '-5,-4,-8,-9')); ?>															
    					<?php if (have_posts()) : ?>															
    					<?php while (have_posts()) : the_post(); ?>
    Code (markup):
    On the bottom of the page, there is a link with text: "« Starejše novice"

    Which would have to open page 2 of that category, but it does not. It opens page 2 but there are still the same posts on the site.

    This is the code I use for the link to next page:
    <?php next_posts_link('&laquo; Starejše novice') ?>
    Code (markup):
    Do you have any idea how would I fix that, so when clicking on the link I would actually get a page 2 of that category?

    Thank you!
     
    Matt18, Jan 13, 2010 IP