Support » Themes and Templates » Pagination showing same posts on all pages

  • Resolved meredith1986

    (@meredith1986)


    When I click on page 2, it shows the same posts that are on page 1. I have read 20 different threads about this problem, but can’t find a solution that works. This is my code:

    <?php global $paged;
    
    $bcat = get_option('of_blog_category');
    $bcatid = get_cat_id($bcat);
    
    query_posts(array(
    'cat'=>$bcatid,
    'posts_per_page' => 5,
    'paged' => $paged
    )); ?>

Viewing 1 replies (of 1 total)
  • I realized I was editing the wrong file. I had to remove

    <?php woo_pagenav(); ?>

    from my archives.php template.

Viewing 1 replies (of 1 total)
  • The topic ‘Pagination showing same posts on all pages’ is closed to new replies.