• 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)
  • What if you change to the default permalinks?

    Thread Starter lordgreg

    (@lordgreg)

    Hi Michael,

    just tried that and it’s still the same. always pops first page.

    any other options? *desperate*

    -Gregor

    Thread Starter lordgreg

    (@lordgreg)

    bumping for help. could you maybe tell me whom to ask this specific question- i doubt it’s a bug (or is it?), just want to fix the problem i’m having.

    Thank you.

    Change to the WordPress Default Theme. Does the paging work there without your custom stuff?

    Thread Starter lordgreg

    (@lordgreg)

    Hi Michael,

    i’ve switched to “WordPress Default” theme and paging worked so it has to be problem with the loop & $paged variable,.. or what else could be wrong here. i looked everywhere.. no clues 🙁

    Maybe someone can spot a coding problem if paste your complete template at a pastebin and report the link back here.

    Thread Starter lordgreg

    (@lordgreg)

    Hi again,

    this is my code then:

    pastebin code.

    if anyone finds the problem, would be more than happy 🙂

    Thread Starter lordgreg

    (@lordgreg)

    has anyone found a problem that is causing me headaches yet?

    anyone? anything?

    thank you for help.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘the_loop & paged variables with own theme’ is closed to new replies.