the_loop & paged variables with own theme
-
I think, you are familiar with loop, starting as:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('paged={$paged}&cat=-30&orderby=date&order=desc'); // no exclusive category if (have_posts()) : $i = 0; ?> <?php while (have_posts()) : the_post(); ?>My problem is, i’ve created my own theme, in which, i’m excluding category id 30. But, in this case, if i go to previous page (aka. page2, page3,…), it always shows me main page with latest news instead of showing correct old entries.
What am i doing wrong here? I have latest, wordpress 2.7 installed, googled about the problem and haven’t found a solution at all.
Please help me out here!
Thank you and best regards,
Gregor
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘the_loop & paged variables with own theme’ is closed to new replies.