• Hi guys!
    I’m trying to put pagination on the THE MORNING AFTER template… But it does not work. Here’s the code:

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    $the_query = new WP_Query('cat=-' .$catid. ',-' .$catid2. ',-2705&showposts=10&offset=1&orderby=post_date&paged=' .$paged. '&order=desc');
    
    while ($the_query->have_posts()) : $the_query->the_post();
    
    $do_not_duplicate = $post->ID; ?>

    Where’s the problem…?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination does not work’ is closed to new replies.