WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Older entries page same as first page (4 posts)

  1. miika_p
    Member
    Posted 5 years ago #

    Hi, I have some problems with older entries. I use following kind of loop to display posts from each category:

    <?php if (have_posts()) : ?>

    <?php
    $category1 = new WP_Query();
    $category1->query('category_name=category1');?>

    <?php while ($category1->have_posts()) : $category1->the_post(); ?>
    ...
    <?php endwhile; ?>

    Older entries (vanhemmat kuukumiset at my page) shows the same page as the index. Am I missing something?

    My blog: http://rockynkuulumiset.net/
    older entries: http://rockynkuulumiset.net/page/2/

  2. miika_p
    Member
    Posted 5 years ago #

    I'm still having this problem.

  3. alvarix
    Member
    Posted 5 years ago #

    I just spent some time finding the solution, so I thought I would update the open questions I found on this topic.

    See codex:
    Pagination Parameters

  4. miika_p
    Member
    Posted 5 years ago #

    Hi, I got this problem solved with instructions from this site:

    http://www.allcms.org/wordpress/paging-and-custom-wordpress-loops/

Topic Closed

This topic has been closed to new replies.

About this Topic